changelogrelease

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2026 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL