Repository navigation
fix(release/auto-changelog): move the Unreleased link to the restored release - #326
Merged
Merged
Conversation
HowardBraham
force-pushed
the
merge-previous-update-unreleased-link
branch
from
November 13, 2026 21:35
559c9f4 to
f971353
Compare
sleepytanya
approved these changes
Nov 13, 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.
Explanation
merge-previous-releasesrestores a finalized release's changelog section and link reference after thegit merge -s ours, but left[Unreleased]: …/compare/vX...HEADpointing at the older release it started from. The next changelog update then lists a compare range that includes the restored release.The script now moves the
[Unreleased]link to the restored version when that version is newer than the link's start. The link is left alone when it is missing, ambiguous, not acompare/vX.Y.Z...HEADlink, or already newer.Testing
merge-previous-releases.test.mts.merge-previous-releasesaction from a fork workflow: the destination's[Unreleased]link changed fromv8.0.9...HEADtov8.1.0...HEAD, and the destination's own unreleased entry was kept.Note
Low Risk
Scoped to release changelog merge automation with conservative no-op guards; no runtime or auth impact.
Overview
Fixes
merge-previous-release-changelogso after it restores a finalized release section, the[Unreleased]GitHub compare link (…/compare/vX.Y.Z...HEAD) starts from that restored version when it is newer than the link’s current base. Missing, ambiguous, non-standard, or already-newer links are left unchanged.mainnow runs this step after inserting the release reference. Two integration tests cover the forward move and the no-op when the destination already points at a newer release. CHANGELOG documents the fix under Unreleased.Reviewed by Cursor Bugbot for commit f971353. Bugbot is set up for automated code reviews on this repo. Configure here.
Related PRs
add-team-labelfalls back toteam-botsfor bot accounts