[BUG] Bump failes if Changelog exists
See original GitHub issueDescription
When i run cz bump
it fails unless i delete the CHANGELOG.md
generated by the last bump. While the version is bumped and all files are changed in regard to the version in there, the commit and tag isn’t created
Steps to reproduce
- clone https://github.com/FactoryRally/game-controller
- checkout commit
45d5049d69ee6c0d3a5b879caa619d1cab58f575
- run
cz bump
- delete
CHANGELOG.md
- run
cz bump
again
Current behavior
nitonfx@laptop:/path/game-controller$ cz bump
bump: version 2.2.0b0 → 2.2.0
tag to create: v2.2.0
increment detected: MINOR
No tag found to do an incremental changelog
nitonfx@laptop:/path/game-controller$ rm CHANGELOG.md
nitonfx@laptop:/path/game-controller$ cz bump
bump: version 2.2.0b0 → 2.2.0
tag to create: v2.2.0
increment detected: MINOR
Done!
Desired behavior
A clearer message whats going wrong or it just working.
Environment
- commitizen version: 2.13.0
- python version: 2.7.17
- operating system: Linux
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Version bumping isn't working properly based on Commit types
I'm using commitzen to take care of my commits, but when I make a release, standard-version isn't bumping based on my commits and...
Read more >Changelog — Python 3.11.1 documentation
The errno modules exposes the new error number. getpath.py now ignores PermissionError when it cannot open landmark files pybuilddir.txt and ...
Read more >ChangeLog | Sudo
c: Call terminate_command() with use_pgrp = false when not running in a pty. When sudo runs a command in the user's existing terminal...
Read more >Bigtop Project Release Notes
[BIGTOP-3589] - Fix build failure of Alluxio caused by buildnumber-maven-plugin · [BIGTOP-3595] - The webui module is missing in the RPM package ...
Read more >VMware Tanzu Application Service for VMs v2.11 Release ...
If you try to create or update a router group to include system component ports, the Routing API returns an error. Current invalid...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @phildong , thanks for reporting. I just confirm it’s reproducible on my machine.
I believe I’m seeing very similar behavior, and I believe this only happens when the last version is a pre-release. Here is a reproducible example I’m able to come up with:
The last line would fail with
No tag found to do an incremental changelog
As @nbrugger-tgm noted clearing the content of changelog would work around this, but of course that would clear any custom edits in the changelog. However everything would be fine if I don’t do--prerelease
in step2.I’m using
git version 2.31.1
andcz version 2.17.4
Let me know if this is reproducible/helpful!