Repository navigation
fix(next-reset): carry late merges onto the release instead of dropping them - #361
Merged
Merged
Conversation
…ng them After a next → master release squash-merged, next-reset force-reset next (and hotfixes) to the release commit unconditionally, so a PR that merged into next between the release merge and the reset vanished: not in the release, not on next, still shown as merged. Five Dependabot/bot auto-merges were lost this way on 2026-10-04. New action git/steps/reset-branch-after-release replaces force-reset-branch for both branches: - branch == release PR head → move it to the release commit (as before) - release already an ancestor of the branch → no-op (re-runs are safe) - commits merged after the release PR was cut → replay each late first-parent commit onto the release commit (merge-tree with the first parent as base, so merges are flattened and the shipped pre-squash history never becomes reachable again), publish through the Git Data API so GitHub signs each commit for the bot App, list them in the run summary and comment on each PR - a replay conflict → leave the branch untouched, fail, open an issue and comment on every affected PR Every ref update is a compare-and-swap against the tip the plan was built from: GraphQL updateRefs with beforeOid, then git push --force-with-lease=refs/heads/<branch>:<sha>. A refusal re-reads the branch; if it moved, the plan is rebuilt from the new tip. Only if both CAS paths are refused with the branch unmoved does a guarded REST force update run, followed by an audit of PRs merged into the branch since the release. The wait-for-tags gate now runs only in CLDMV/.github. In consumer repos it polled the repo's own vN tag, which is unrelated to the @v4 actions they run (some have none, so it always waited the full 2 minutes); that delay was the window in which the lost merges landed. sync-branches now starts immediately when the gate is skipped. The hotfix lane's merge of master into next (#278/#279, #334) is unchanged. The App token now requests pull-requests and issues write for the PR comments and the failure issue. Fixes #360
Shinrai
previously approved these changes
Oct 4, 2026
escapeCell escaped | but not \, so a commit subject containing a backslash could swallow the escape added for a following pipe and break the run-summary / PR-comment table (CodeQL js/incomplete-sanitization, alert #111). Escape backslashes first, then pipes, and flatten line breaks. Covered by new tests.
Shinrai
approved these changes
Oct 4, 2026
cldmv-bot Bot
added a commit
that referenced
this pull request
Oct 4, 2026
…ping… ## 🚀 What's Changed ### 💥 Breaking Changes _No breaking changes_ ### ✨ Features _No new features_ ### 🐛 Bug Fixes - #363 - fix(tag-health): run tag re-sign/re-point git commands without a shell (e57f7d1) - fix(sync-release-notes): escape backslashes in summary table cells (6fd4d8a) - fix(tag-health): re-sign and re-point tags in place instead of delete + recreate (3a42470) - fix(release): stop tag-health unpublishing releases; release notes from changelog files (4ee38d3) - #361 - fix(next-reset): escape backslashes in summary table cells (4f01a0c) - fix(next-reset): carry late merges onto the release instead of dropping them (259ad07) ### 📦 Dependencies _No dependency updates_ ### 🔧 Other Changes - #363 - chore(release-notes): run release-notes tests in npm test; lint and format fixes (d88d3cb) - chore(tag-health): drop unused gitCommand import in fix-non-bot-tags (649e9a7) <details> <summary>👥 Contributors</summary> - @Shinrai </details> <!-- co-authors --> Co-authored-by: Shinrai <[email protected]>
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
📦 Dependencies
No dependency updates
🔧 Other Changes
No other changes
👥 Contributors