You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: fail a PR that edits a released CHANGELOG section #1234
Two PRs (#716, #1207) merged after v0.0.138 was tagged and added their bullets inside the v0.0.138 section instead of Unreleased. The release body was unaffected (extracted before), but CHANGELOG.md on main claimed features the tag does not contain until #1233 moved them.
A reviewer-memory rule (released sections unchanged vs tag) existed but nothing enforced it.
Acceptance Criteria
A CI check compares every released ## vX.Y.Z section (any version with a tag) in the PR's CHANGELOG.md against the same section at that tag and fails on any difference, naming the section.
A PR that only edits ## [Unreleased] passes; the release bump PR (which renames Unreleased to the new version heading) passes.
The failure message tells the author to move the bullet under ## [Unreleased].
A test covers a bullet added to a released section (fails) and to Unreleased (passes).
I would like to take this. I will add a tested released-section verifier that compares tagged CHANGELOG sections against their tag snapshots, wire it into pull-request CI, preserve Unreleased and release-bump behavior, and run the focused release tooling checks plus the repository validation required by the changed paths.
Already on main: scripts/check-released-changelog.sh compares every released ## vX.Y.Z section with its tag and fails naming the section, with the message to move bullets under ## [Unreleased]; scripts/test-released-changelog.sh covers a bullet added to a released section (fails) and to Unreleased (passes); the Changelog guard CI job runs it on every PR (it is what failed #1330). Closing.
Activity
WilliamK112 commentedon Oct 28, 2026
I would like to take this. I will add a tested released-section verifier that compares tagged CHANGELOG sections against their tag snapshots, wire it into pull-request CI, preserve Unreleased and release-bump behavior, and run the focused release tooling checks plus the repository validation required by the changed paths.
test(ci): cover deleted changelog sections squirrelscan#1234
ci: isolate released changelog guard squirrelscan#1234
ci: fetch changelog snapshots only when needed squirrelscan#1234
docs(changelog): re-home bullets that landed in released sections aft…
ci: guard tagged changelog sections #1234
test(ci): cover deleted changelog sections #1234
ci: isolate released changelog guard #1234
ci: fetch changelog snapshots only when needed #1234
nc9 commentedon Oct 30, 2026
Already on main:
scripts/check-released-changelog.shcompares every released## vX.Y.Zsection with its tag and fails naming the section, with the message to move bullets under## [Unreleased];scripts/test-released-changelog.shcovers a bullet added to a released section (fails) and to Unreleased (passes); the Changelog guard CI job runs it on every PR (it is what failed #1330). Closing.nik