タグ詳細 (#318) (#328)

#318

#318

#318

#318

Co-authored-by: miteruzo <miteruzo@naver.com>
Reviewed-on: #328
This commit was merged in pull request #328.
This commit is contained in:
2026-04-23 00:06:49 +09:00
parent 8ff1819d5a
commit 43cd38a216
11 changed files with 642 additions and 49 deletions
+3 -4
View File
@@ -8,10 +8,9 @@ module TagRepr
module_function
def base tag
tag.as_json(BASE)
tag.as_json(BASE).merge(aliases: tag.snapshot_aliases,
parents: tag.parents.map { _1.as_json(BASE) })
end
def many tags
tags.map { |t| base(t) }
end
def many(tags) = tags.map { |t| base(t) }
end