555 B
555 B
name, description
| name | description |
|---|---|
| changelog | Draft a changelog entry from the git commits since the last tag (or all commits if there is no tag). Use when the user asks for release notes or a changelog. |
- Find the range:
git describe --tags --abbrev=0— if it fails, use the full history. - Read the commits in that range with
git log --oneline <range>. - Group them under Added, Changed, Fixed (skip empty groups), one bullet per user-visible change, in plain language.
- Print the entry. Only write it to
CHANGELOG.mdif the user asks.