Files
gerrit/tools/release_noter
Marco Miller 5cb673abba Fix release_noter --link option for plugin changes
Before this change, the link option was using 'gerrit' as the project
for all generated links to changes. Fix those in the plugins case, by
using 'plugins/name' instead in that generated url.

Bug: Issue 13623
Change-Id: Ifb08f376eac8c4a8d6f86bb345828f9282a314dd
2020-11-03 12:26:03 -05:00
..
2020-10-14 12:15:47 -04:00

Release Noter

Setup

make setup
make deploy
  • The deploy target may not succeed if Pipfile.lock is out of date.
    • The setup target can be used first in such a case.
  • Using make all will run the deploy target, among the other key targets.

Warning

The make clean target removes any previously made release_noter*.md file(s).

Running release_noter.py multiple times without cleaning creates the next N release_noter-N.md file, without overwriting the previous one(s).

Usage

make help
  • The resulting release_noter*.md file(s) can be edited then copied over to the homepage.
    • The markdown file name should be x.y.md, where x.y is the major release version.
    • Alternatively, an existing x.y.md can be edited with release_noter*.md snippets.

Testing

make test
make test COMMITS=100

This target will use the -l option, which takes more time as COMMITS increases.

Examples

pipenv run python release_noter.py v3.2.3..HEAD
pipenv run python release_noter.py v3.2.3..v3.3.0-rc0
pipenv run python release_noter.py v3.2.3..v3.3.0-rc0 -l

Coding

make black
make flake