gitlink-cli/shortcuts/tag
1os21ka23r9navae6mrro 99e536226a feat(tag): add +view with list-scan fallback
tag +view -n <name> wraps GET /v1/:owner/:repo/tags/:name. In
production the show endpoint's tag-existence precheck (gitea-hat
tag_name_set) rejects tags that the paginated list returns
('标签不存在!' even for a tag visible in tags.json), so on error the
command falls back to scanning the paginated list for the requested
name and emits the matching entry.

Production-reproduced the precheck bug and verified the fallback
returns the correct tag. 2 unit tests cover the direct path and the
fallback.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-07-08 15:05:17 +00:00
..
tag.go feat(tag): add +view with list-scan fallback 2026-07-08 15:05:17 +00:00
tag_test.go feat(tag): add +view with list-scan fallback 2026-07-08 15:05:17 +00:00