Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

changelog is not able to recognize tags for incremental changelog #1149

Open
@nos86

Description

Description

When I try to produce the incremental changelog, I receive this error:

> cz changelog
InvalidVersion GitTag('utility/v0.1.3', 'a6ffd4da2c7db27a792b00fefdbca5e7de6f1f60', '2024年05月17日')
InvalidVersion GitTag('utility/v0.1.2', 'cb887f77eaca3ae2af4360a9451d18ec5414bdb6', '2024年05月16日')

Commitizen is configured to work with poetry. See below the configuration:

[tool.commitizen]
name = "cz_conventional_commits"
tag_format = "utility/v$version"
version_scheme = "semver2"
version_provider = "poetry"
update_changelog_on_bump = true
changelog_incremental = true
major_version_zero = true

If I run the bump command:

> cz bump --dry-run
bump: version 0.1.3 → 0.2.0 
tag to create: utility/v0.2.0
increment detected: MINOR
InvalidVersion GitTag('utility/v0.1.3', 'a6ffd4da2c7db27a792b00fefdbca5e7de6f1f60', '2024年05月17日')
InvalidVersion GitTag('utility/v0.1.2', 'cb887f77eaca3ae2af4360a9451d18ec5414bdb6', '2024年05月16日')
No tag found to do an incremental changelog

It looks like, it recognize current release version but it is not able to match the correct tag to generate incremental changelog

Steps to reproduce

cz changelog

Current behavior

> cz changelog
InvalidVersion GitTag('utility/v0.1.3', 'a6ffd4da2c7db27a792b00fefdbca5e7de6f1f60', '2024年05月17日')
InvalidVersion GitTag('utility/v0.1.2', 'cb887f77eaca3ae2af4360a9451d18ec5414bdb6', '2024年05月16日')

Desired behavior

Tag is recognized and changelog is generated correctly

Screenshots

No response

Environment

> cz version
3.25.0
> python --version
Python 3.11.9
> python3 -c"import platform; print(platform.system())"
Windows
> cz version --report
Commitizen Version: 3.25.0
Python Version: 3.11.9 (tags/v3.11.9:de54cf5, Apr 2 2024, 10:12:12) [MSC v.1938 64 bit (AMD64)]
Operating System: Windows

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

        AltStyle によって変換されたページ (->オリジナル) /