Repository navigation
fix(release): floor release version at highest tag + reopen a spuriously-closed release PR (#278) - #280
Merged
Conversation
…sly-closed release PR (#278) Two follow-ups to the next-reset data-loss fix (#279): Version collision (#278 fix #2): a concurrent hotfix and next release could both resolve to the same X.Y.Z (both v0.2.5 in the gh-broker incident), and the publish step cannot republish an already-shipped version. find-divergence and create-release-pr's divergence now floor the bump base at the highest existing release tag (read via git ls-remote --tags), so a base that lags a just-published tag can no longer recompute a shipped version. Degrades to no floor when tags cannot be read. Release-PR auto-close (#278 fix #3): GitHub natively closes the persistent next -> master release PR whenever next transiently equals master. The plan step now reopens the most recent closed-but-unmerged next -> base PR (preserving its number and history) before falling back to creating a fresh one. Fixes #278
There was a problem hiding this comment.
🟢 Approval recommended
The changes directly mitigate the reported release-flow failure mode and the remaining feedback is limited to minor clarity/best-practice nits rather than correctness blockers.
Pull request overview
Addresses release-flow correctness issues in the org-wide “next release” automation by preventing version collisions with concurrently-published tags and by preserving the release PR when it was closed without merging (per #278).
Changes:
- Reopen the most recent closed-but-unmerged
next → baserelease PR when no open release PR exists, instead of always creating a new one. - Floor the computed base version at the highest released
vX.Y.Ztag to avoid recomputing a version that already shipped when the default branch view lags tags. - Minor logging/message adjustments for clearer workflow output.
File summaries
| File | Description |
|---|---|
| .github/workflows/workflow-next-release.yml | Adds logic to reuse/reopen the persistent release PR instead of orphaning it when it was closed without merging. |
| .github/actions/github/jobs/create-release-pr/divergence.mjs | Floors base version at the highest released semver tag to avoid shipping-version collisions during concurrent releases. |
| .github/actions/git/steps/find-divergence/action.mjs | Mirrors the same base-version flooring behavior for divergence/version discovery in the git helper action. |
Review details
- Files reviewed: 3/3 changed files
- Comments generated: 3
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Shinrai
approved these changes
Sep 6, 2026
Shinrai
enabled auto-merge
September 6, 2026 07:19
Shinrai
disabled auto-merge
September 6, 2026 15:25
Shinrai
previously approved these changes
Sep 6, 2026
…ollision-and-pr-reopen
- find-divergence + create-release-pr divergence: use tryGitArgs (execFileSync, no shell) for the tag lookup, consistent with the file's other git calls (args are static; this is for consistency, not a fix). - next-release resolve comment: correct the release-PR close attribution. The reset making next == base is what closes the PR — attributed to the identity that pushed the ref (the bot, per gh-broker #44 closed_by=cldmv-bot[bot]), not a GitHub-native empty-diff close.
Shinrai
approved these changes
Sep 6, 2026
cldmv-bot
Bot
deleted the
fix/release-version-collision-and-pr-reopen
branch
September 6, 2026 15:35
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.
🚀 What's Changed
💥 Breaking Changes
No breaking changes
✨ Features
No new features
🐛 Bug Fixes
nexttomaster, dropping next's queued commits and auto-closing thenext→masterrelease PR (silent data loss) #278) (37c8c54)📦 Dependencies
No dependency updates
🔧 Other Changes
👥 Contributors