Skip to content

cz bump fails with --changelog and no local tag exists for local version #529

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
hongkongkiwi opened this issue Jun 23, 2022 · 3 comments
Closed

Comments

@hongkongkiwi
Copy link

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

  1. Delete a local tag for a previous version after you have generated a changelog
  2. Update the version manually in the .cz.yaml file
  3. 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
@12rambau
Copy link
Contributor

related to #463 (that I closed but that reappears from time to time when my linter touch the changelog file)

@Lee-W
Copy link
Member

Lee-W commented Aug 14, 2022

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?

@woile
Copy link
Member

woile commented Apr 28, 2023

Out of scope. Commitizen expects things to be in-sync.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants