Skip to content

fix(cliparr): check release tag existence through git refs - #192

Merged
KyleTryon merged 1 commit into
mainfrom
fix/cliparr/release-tag-lookup
Sep 11, 2026
Merged

KyleTryon merged 1 commit into
mainfrom
fix/cliparr/release-tag-lookup

Conversation

@KyleTryon

Copy link
Copy Markdown
Contributor

Release creation failed for a new tag because GitHub's commits endpoint returns HTTP 422 when the tag does not exist, while the script only allowed HTTP 404. Check the exact tag through the Git refs endpoint, which returns 404 for an absent tag, and resolve the fully qualified tag ref to a commit only when it exists.

Preserves retry updates and conflicting-target rejection, including annotated tags. Adds regression coverage for absent tags, existing tags without releases, missing tags on existing releases, and API errors that must stop publication.

Validation: all 38 release tests and pnpm preflight passed. Read-only checks against GitHub confirmed the missing-tag 404 and successful resolution of an existing release tag.

After merging, start a new Release workflow run from main; retrying the failed run retains its original commit.

Failed job: https://github.com/TechSquidTV/Cliparr/actions/runs/34557937141/job/103134510079

@KyleTryon
KyleTryon marked this pull request as ready for review September 11, 2026 11:57
@KyleTryon
KyleTryon merged commit efcb565 into main Sep 11, 2026
4 checks passed
@KyleTryon
KyleTryon deleted the fix/cliparr/release-tag-lookup branch September 11, 2026 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant