Repository navigation
ci: verify release commits by their PR, not the commit message - #398
Merged
Merged
Conversation
Squash-merging a single-commit PR here uses the commit's own message
("Update release files"), not the PR title, so the message check
rejected the v0.0.57 release PR. Look up the merged PR for the commit
and require it to come from release/vX.Y.Z instead, which works for any
merge style or repository setting.
Tag the commit that last changed VERSION rather than HEAD, and allow
workflow_dispatch so a failed release can be retried.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
ChrisJBurns
approved these changes
Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The first release through the new flow stopped at Verify release PR (run). Nothing was tagged or published.
Cause: this repo's squash-merge title setting is
COMMIT_OR_PR_TITLE(toolhive and toolhive-registry-server usePR_TITLE). For a single-commit PR that means the commit's own message, so #397 landed as "Update release files (#397)" instead of "Release v0.0.57", and the message check rejected it. Rebase merges, which this repo also allows, would hit the same problem.Changes (
create-release-tag.ymlonly)GET /commits/{sha}/pulls) and requirehead.ref == release/vX.Y.Zandbase.ref == main. Works for any merge style or setting.VERSION, notHEAD.workflow_dispatch: allows retrying a release after the release PR merged. This PR doesn't touchVERSION, so merging it won't start a release by itself.After merge
Run
gh workflow run create-release-tag.ymlto release v0.0.57 fromc024466(#397).Test plan
c024466for v0.0.57 (finds Release v0.0.57 #397), rejects it for v0.0.58, rejects a normal PR commit (bda7d5b, ci: release all modules together from a VERSION file #396)🤖 Generated with Claude Code