Skip to content

fix(release/auto-changelog): move the Unreleased link to the restored release - #326

Merged
HowardBraham merged 2 commits into
mainfrom
merge-previous-update-unreleased-link
Nov 13, 2026
Merged

HowardBraham merged 2 commits into
mainfrom
merge-previous-update-unreleased-link

Conversation

@HowardBraham

@HowardBraham HowardBraham commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Explanation

merge-previous-releases restores a finalized release's changelog section and link reference after the git merge -s ours, but left [Unreleased]: …/compare/vX...HEAD pointing 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 a compare/vX.Y.Z...HEAD link, or already newer.

Testing

  • Two new unit tests in merge-previous-releases.test.mts.
  • Ran the real merge-previous-releases action from a fork workflow: the destination's [Unreleased] link changed from v8.0.9...HEAD to v8.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-changelog so 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.

main now 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

  • github-tools #327: add-team-label falls back to team-bots for bot accounts
  • Extension #47954 and Mobile #39756: stop maintaining per-bot lists in the client repos

@HowardBraham
HowardBraham force-pushed the merge-previous-update-unreleased-link branch from 559c9f4 to f971353 Compare November 13, 2026 21:35
@HowardBraham
HowardBraham merged commit fd1b8b7 into main Nov 13, 2026
10 checks passed
@HowardBraham
HowardBraham deleted the merge-previous-update-unreleased-link branch November 13, 2026 21:53
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