com um clique
release-notes
// Generate formatted release notes from git commits since the last tag and prepend them to CHANGELOG.md
// Generate formatted release notes from git commits since the last tag and prepend them to CHANGELOG.md
| name | release-notes |
| description | Generate formatted release notes from git commits since the last tag and prepend them to CHANGELOG.md |
| disable-model-invocation | false |
Run git log $(git describe --tags --abbrev=0)..HEAD --oneline --no-merges to get commits since the last tag.
Determine the new version from the current release/* branch name (e.g. release/1.3.0 → 1.3.0).
Get today's date in YYYY-MM-DD format.
Group commits by type using these categories (skip merge commits and anything without meaningful user impact):
feat: commitsfix: commitschore:, refactor:, perf:, update:, deps: commitsFormat the output as a markdown changelog section:
## [VERSION] - DATE
### Added
- ...
### Fixed
- ...
### Changed
- ...
Omit sections that have no entries. Write bullet points in plain English (no commit hashes), and mention PR numbers where present.
Read docs/CHANGELOG.md, then prepend the new section immediately after the # Changelog header line (before the first existing ## [...] section), and write the file back.
Display the generated section to the user.