You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When generating changelog, get_version_tags function from commitizen/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 customizing tag_format
Steps to reproduce
Use some custom prefixed tag_format in .cz.yaml, tag_format: some-project-release-$version
Do initial version commit, bump and generate changelog: cz bump --changelog
Do subsequent fix/feat commit, bump and generate changelog: cz bump --changelog
ER: Version bumped, changelog generated.
AR: Error saying No 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 saying No 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 with scheme(tag.name)
Screenshots
No response
Environment
Commitizen 3.8.2
Python 3.10.12
The text was updated successfully, but these errors were encountered:
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
Use some custom prefixed tag_format in .cz.yaml,
tag_format: some-project-release-$version
Do initial version commit, bump and generate changelog:
cz bump --changelog
Do subsequent fix/feat commit, bump and generate changelog:
cz bump --changelog
ER: Version bumped, changelog generated.
AR: Error saying
No 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 saying
No 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 with
scheme(tag.name)
Screenshots
No response
Environment
Commitizen 3.8.2
Python 3.10.12
The text was updated successfully, but these errors were encountered: