Documentation
¶
Overview ¶
Command changelogrelease keeps the hand-written CHANGELOG.md in step with releases.
cut <version> <date> renames "## [Unreleased]" to "## [<version>] - <date>" and
adds a fresh, empty "## [Unreleased]" above it. It fails if
the Unreleased section is empty or the version already has
a section. An "[Unreleased]: <url>" link definition is
turned into a compare link and a "[<version>]" link added.
notes <version> prints the body of that version's section and fails if the
section is missing or empty.
With -repo, notes prints the full GitHub Release notes (Story 4.19): the CHANGELOG section, then "Benchmark" (the -benchmark file: the table `benchsync -notes` renders from docs/benchmark/results.json), "Verify this release" (the cosign verify-blob, sha256 and container image commands for -repo's release workflow identity), "Install" (the -install file: the table `readmegen -install-table` renders from docs/data/install-matrix.yaml) and the registry contributor credits (the -credits file from tools/releasecredits, appended when not empty). A missing or empty -benchmark or -install file, or an unreadable -credits file, fails with exit 1 and prints nothing, so the release job stops before it publishes notes.
Both commands take -file to point at a changelog other than ./CHANGELOG.md.
Usage: go run ./tools/changelogrelease cut [-file CHANGELOG.md] 1.2.3 2026-11-17
go run ./tools/changelogrelease notes [-file CHANGELOG.md] 1.2.3
go run ./tools/changelogrelease notes -repo owner/name -benchmark bench.md \
-install install.md -credits credits.md 1.2.3
Exit codes: 0 done, 1 the changelog (or a release notes input) is not in a state the command accepts, 2 usage error or the file cannot be read or written.