Closed
Description
Description
Whenever something is merged in our main branch commitizen checks if a version bump is required. Usually it's fine but whenever no increment is detected it will still try to create a tag while it shouldn't. Because the version is still the same and matches a previously created tag the command and the pipeline fails. Am I just not handling this correctly? I can't imagine nobody has run into this yet.
Steps to reproduce
Make sure a git tag exists that matches the version commitizen is tracking. Create a new commit that shouln't trigger a version bump then run cz bump
and watch it fail.
bump: version 0.10.2 → 0.10.2
tag to create: v0.10.2
increment detected: None
fatal: tag 'v0.10.2' already exists
Desired behavior
I think it shouldn't try to create a git tag if no change is detected.