mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
新增:查看标签详情api
This commit is contained in:
@@ -4,7 +4,11 @@ if tag.present? && tag.is_a?(Hash)
|
||||
json.zipball_url render_zip_url(@owner, @repository, tag['name'])
|
||||
json.tarball_url render_tar_url(@owner, @repository, tag['name'])
|
||||
json.tagger do
|
||||
json.partial! 'api/v1/users/commit_user', user: render_cache_commit_author(tag['tagger']), name: tag['tagger']['name']
|
||||
if tag['tagger'].present?
|
||||
json.partial! 'api/v1/users/commit_user', user: render_cache_commit_author(tag['tagger']), name: tag['tagger']['name']
|
||||
else
|
||||
json.nil!
|
||||
end
|
||||
end
|
||||
json.time_ago time_from_now(tag['tagger']['date'].to_time)
|
||||
json.created_at_unix tag['tagger']['date'].to_time.to_i
|
||||
|
||||
1
app/views/api/v1/projects/tags/show.json.jbuilder
Normal file
1
app/views/api/v1/projects/tags/show.json.jbuilder
Normal file
@@ -0,0 +1 @@
|
||||
json.partial! "api/v1/projects/tags/simple_gitea_index_detail", tag: @result_object
|
||||
Reference in New Issue
Block a user