changelog.star¶
Add entries to a Keep a Changelog style CHANGELOG.md.
A campaign can add a step that records its own change, so the repo's changelog stays complete without anyone editing it by hand.
| Function | What it does |
|---|---|
find |
Finds the repo's changelog. |
add_entry |
Adds a bullet under the Unreleased release, in a section such as Changed or Security. |
find¶
Finds the repo's changelog.
Arguments
| Name | Description |
|---|---|
repo |
The repo passed to change(repo). |
Returns: The path of the first of CHANGELOG.md, CHANGELOG, CHANGES.md, HISTORY.md and docs/CHANGELOG.md that exists, or None.
Example
add_entry¶
Adds a bullet under the Unreleased release, in a section such as Changed or Security.
The ## [Unreleased] heading is added above the first release when
missing, and the ### <section> heading inside it. An identical entry
already there is not added again. A repo without a changelog is left
alone.
Arguments
| Name | Description |
|---|---|
repo |
The repo passed to change(repo). |
text |
The entry, without the leading -. |
section |
The Keep a Changelog section: Added, Changed, Deprecated, Removed, Fixed or Security. |
path |
The changelog to edit; found with find by default. |
Returns: True when the file changed.
Example
Used in: changelog-entry