Skip to content

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

@hongkongkiwi

Description

@hongkongkiwi

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions