Documentation
¶
Overview ¶
Command whatchanged prints the behaviour changes between two go-common releases and maintains the feed they are read from.
go run github.com/baditaflorin/go-common/scripts/whatchanged@latest v0.102.60 v0.105.0
prints a markdown section for a pull request body: the CHANGELOG.md bullets marked **BREAKING...** in releases newer than the first version, up to and including the second (the newest when it is left out), each as its one-line summary: and, when it has one, the off-switch: that restores the old behaviour. Running it with @latest reads the newest feed, which is the point: the feed is embedded in the compat package.
The feed is compat/changes.json, generated from CHANGELOG.md:
go run ./scripts/whatchanged -gen write compat/changes.json go run ./scripts/whatchanged -check exit 1 if CHANGELOG.md breaks the grammar or the file is stale go run ./scripts/whatchanged -release 0.105.1 -latest-tag v0.105.0 the checks a change that claims that release must pass
docs/releasing.md has the grammar. scripts/release-check.sh runs -release in CI. Exit status: 0 ok, 1 a problem was found (printed), 2 it could not run.