Repository navigation
ci: fail check-version when a PR edits the frozen CHANGELOG.md - #4594
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
There was a problem hiding this comment.
All reported issues were addressed across 1 file
Shadow auto-approve: would not auto-approve because issues were found.
View guided diff | Re-trigger cubic
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
There was a problem hiding this comment.
0 issues found across 1 file (changes from recent commits).
Shadow auto-approve: would not auto-approve. This PR does not meet the repository auto-approval settings.
View guided diff | Re-trigger cubic
ryannikolaidis
approved these changes
Oct 24, 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.
Summary
CHANGELOG.mdwas frozen in #4578, but nothing enforces the freeze: PRs written under the old convention still edit it. This makes the existing requiredcheck-versionjob fail when a PR changesCHANGELOG.md, with a message pointing to the PR title and the "Release note" section.The check lives in
scripts/check-new-release-version.sh, with regression tests inscripts/test-check-new-release-version.sh. No workflow, settings or branch-protection changes are needed, becausecheck-versionis already a required check.How it decides
The check compares
CHANGELOG.mdbetween the base thatcheck-versionalready uses and the commit under test:mainsnapshot the merge result was built on. Only the PR's own changes count, so a stale PR that never touched the changelog still passes.The check runs before the version rules, so it applies whatever the version does, release PRs included.
Validation
shellcheckandshfmt -i 2 -dare clean.scripts/test-check-new-release-version.shpasses 27 cases, including two new ones that editCHANGELOG.mdin a temporary repo: one as a merge-group entry and one as apull_requestmerge result. Both new cases fail without this PR's script change.main:CHANGELOG.md(queue-style base): FAIL with the freeze messageCHANGELOG.md(pull_requestmerge ref,HEAD^1base): FAILpull_requestmerge ref): PASSRelease note
None (CI-only).
🤖 Generated with Claude Code