cz bump fails with --changelog and no local tag exists for local version
Description
In my situation there may be missing version tags for various reasons.
If the version in .cz.yaml is higher than the tag, it works just fine with a normal cz bump --yes
However, if I use: cz bump --yes --changelog it fails with the message No tag found to do an incremental changelog
If I delete the changelog then rerun it works fine.
It would be great to just have a flag which handles this, for example --overwrite-changelog or something like that.
Steps to reproduce
- Delete a local tag for a previous version after you have generated a changelog
- Update the version manually in the .cz.yaml file
- cz bump --changelog
Current behavior
No tag found to do an incremental changelog
Desired behavior
Flag to not fail on this error
Screenshots
No response
Environment
- commitizen version: 2.27.1
related to #463 (that I closed but that reappears from time to time when my linter touch the changelog file)
I'm not sure whether we have an easy fix to this 🤔 We use git tag to do the operations. Also, it looks like an error out of commitizen's scope 🤔 @Woile What do you think?
Out of scope. Commitizen expects things to be in-sync.