Repository navigation
Release check: refuse a tag without a dated CHANGELOG heading - #8
Merged
Merged
Conversation
tools/check_release.sh vX.Y.Z checks that Cargo.toml's version is the tag's and that CHANGELOG.md's newest heading is '## [X.Y.Z] - YYYY-MM-DD' with a real date. The release workflow runs it first on tags (nothing is built if it fails) and as a notice on pull requests. 2.0.2 and 2.1.0 both shipped with '- unreleased'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QXjQsiWnwLMndr5XU9g5LJ
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.
Adds
tools/check_release.sh vX.Y.Zand runs it first in the release workflow on tags, so a release cannot ship with an undated changelog heading again (2.0.2 and 2.1.0 both shipped with "- unreleased").It fails, before anything is built, unless:
## [X.Y.Z] - YYYY-MM-DDwith a real date;## [Unreleased]may come before it).On pull requests it runs as a notice only. docs/OFFLINE.md gains the release steps.
Tested against history: the v2.0.2 and v2.1.0 tags fail (undated), PR #5's fixed changelog passes for 2.1.0, a wrong tag version, an impossible date (2026-02-30) and a newer release above the tagged one each fail with a message naming the fix.
Note: on
maintoday it would fail for 2.1.0, because the 2.1.0 section was lost in the probe merge; merging #5 restores it.Generated by Claude Code