Skip to content

ci: verify release commits by their PR, not the commit message - #398

Merged
rdimitrov merged 1 commit into
mainfrom
rdimitrov/fix-release-verify
Oct 19, 2026
Merged

rdimitrov merged 1 commit into
mainfrom
rdimitrov/fix-release-verify

Conversation

@rdimitrov

Copy link
Copy Markdown
Member

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 use PR_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.yml only)

  • Verify by PR: look up the merged PR for the release commit (GET /commits/{sha}/pulls) and require head.ref == release/vX.Y.Z and base.ref == main. Works for any merge style or setting.
  • Tag the release commit: the commit that last changed VERSION, not HEAD.
  • workflow_dispatch: allows retrying a release after the release PR merged. This PR doesn't touch VERSION, so merging it won't start a release by itself.

After merge

Run gh workflow run create-release-tag.yml to release v0.0.57 from c024466 (#397).

Test plan

🤖 Generated with Claude Code

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]>
@rdimitrov
rdimitrov merged commit 4608225 into main Oct 19, 2026
16 of 18 checks passed
@rdimitrov
rdimitrov deleted the rdimitrov/fix-release-verify branch October 19, 2026 21:35
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.

2 participants