Movatterモバイル変換


[0]ホーム

URL:


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

Tag name validation issue oncz bump --changelog #845

Open
@josuerzslzr

Description

@josuerzslzr

Description

When generating changelog,get_version_tags function fromcommitizen/changelog.py is validating existing tags as if they were version names with no additional text on them. This behavior conflicts with the feature of customizingtag_format

Steps to reproduce

  1. Use some custom prefixed tag_format in .cz.yaml,
    tag_format: some-project-release-$version

  2. Do initial version commit, bump and generate changelog:cz bump --changelog

  3. Do subsequent fix/feat commit, bump and generate changelog:cz bump --changelog

ER: Version bumped, changelog generated.
AR: Error sayingNo tag found to do an incremental changelog

Current behavior

get_version_tags function from commitizen/changelog.py is validating tag names as if they where version names, hence it's not able to return existing custom tags, an error appears sayingNo tag found to do an incremental changelog

Desired behavior

Allow the changelog to generate regardless of tag name custom prefixes, possible solution could be to exclude the tag name prefix when checking withscheme(tag.name)

Screenshots

No response

Environment

Commitizen 3.8.2
Python 3.10.12

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp