mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-20 11:45:57 +08:00
新增:标签名字列表
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
json.array! @tags do |tag|
|
||||
if tag.present?
|
||||
if tag.present? && tag.is_a?(Hash)
|
||||
json.name tag['name']
|
||||
json.id tag['id']
|
||||
json.zipball_url render_zip_url(@owner, @repository, tag['name'])
|
||||
@@ -22,6 +22,8 @@ json.array! @tags do |tag|
|
||||
json.partial! 'commit_author', user: render_cache_commit_author(tag['commit']['author']), name: tag['commit']['author']['name']
|
||||
end
|
||||
end
|
||||
else
|
||||
json.name tag
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user