Skip to content

refactor: extract tagger to standalone script with git fallback#79

Merged
skjnldsv merged 1 commit into
mainfrom
feature/tag-repos-on-release
Jun 4, 2026
Merged

refactor: extract tagger to standalone script with git fallback#79
skjnldsv merged 1 commit into
mainfrom
feature/tag-repos-on-release

Conversation

@skjnldsv

@skjnldsv skjnldsv commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Extract the tagging logic from release-tag.yml into a standalone tag-repo.sh script.

Primary: gh release create + delete to tag without cloning (fast).
Fallback: git clone + tag + push when gh CLI is unavailable.

Fixes the broken tag existence check — gh api --jq returns the JSON error body on 404 (not empty string), causing every repo to show "EXISTS". Uses gh release view instead.

Test plan

  • Trigger tagger with v34.0.0rc4 --force to re-tag all repos
  • Check step summary shows all repos processed
  • Verify tags exist: gh api repos/nextcloud/activity/git/ref/tags/v34.0.0rc4

Extract the tagging logic from release-tag.yml into a standalone
tag-repo.sh script that can be run independently.

Primary: uses gh release create+delete to tag without cloning.
Fallback: git clone + tag + push when gh CLI unavailable.

Fixes the broken tag existence check (gh api --jq returns JSON
error body on 404, not empty string) by using gh release view
instead.

Each repo failure is reported but doesn't block other repos.

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
@skjnldsv skjnldsv force-pushed the feature/tag-repos-on-release branch from cd65aa2 to 60e426a Compare June 4, 2026 13:10
@skjnldsv skjnldsv merged commit bdbf4cd into main Jun 4, 2026
1 check passed
@skjnldsv skjnldsv deleted the feature/tag-repos-on-release branch June 4, 2026 19:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant