git-cliff
git-cliff copied to clipboard
git-cliff --bumped-version replaces CHANGELOG.md
Is there an existing issue for this?
- [x] I have searched the existing issues
Description of the bug
When running git-cliff --bumped-version it outputs the version into the configured change log output path, overwriting all content.
Steps To Reproduce
- Configure the change log output in
cliff.toml:[changelog] output = "CHANGELOG.md" - Add some content to
CHANGELOG.md - Run
git-cliff --bumped-version - Observe the version getting written to
CHANGELOG.md, overwriting all content
Expected behavior
git-cliff --bumped-version should always output the version to standard out.
Screenshots / Logs
No response
Software information
- Operating system: macOS 15.5
- Rust version: unknown
- Project version: 2.9.1
Additional context
git-cliff is installed via Homebrew.
One workaround is git-cliff --bumped-version --output=-. However, adding output = "-" to the [bump] section in cliff.toml does not work.
Hey, thanks for reporting!
This should be fixed in #1307