René's URL Explorer Experiment


Title: Direct bump with changelog creation not possible using semver2, custom tag_format and prerelease option · Issue #1614 · commitizen-tools/commitizen · GitHub

Open Graph Title: Direct bump with changelog creation not possible using semver2, custom tag_format and prerelease option · Issue #1614 · commitizen-tools/commitizen

X Title: Direct bump with changelog creation not possible using semver2, custom tag_format and prerelease option · Issue #1614 · commitizen-tools/commitizen

Description: Description When using a custom tag_format like ${major}.${minor}-${patch}${prerelease} with semver2 the changelog cannot be create directly using cz bump --prerelase rc with update_changelog_on_bump = true. Only generating the changelog...

Open Graph Description: Description When using a custom tag_format like ${major}.${minor}-${patch}${prerelease} with semver2 the changelog cannot be create directly using cz bump --prerelase rc with update_changelog_on_bu...

X Description: Description When using a custom tag_format like ${major}.${minor}-${patch}${prerelease} with semver2 the changelog cannot be create directly using cz bump --prerelase rc with update_changelog_on_bu...

Opengraph URL: https://github.com/commitizen-tools/commitizen/issues/1614

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Direct bump with changelog creation not possible using semver2, custom tag_format and prerelease option","articleBody":"### Description\n\nWhen using a custom tag_format like `${major}.${minor}-${patch}${prerelease}` with `semver2` the changelog cannot be create directly using `cz bump --prerelase rc` with `update_changelog_on_bump = true`. Only generating the changelog manually using `cz ch` lets the bump succeed.\n\nThe error occurse in a bump chain `0.0.1` → `0.0.2` → `0.0.3-rc.0` → `0.0.3-rc.1`\n\nFurthermore, using prereleases, `cz changelog` always throw warnings like:\n\n`Invalid version tag: '0.0-2rc.0' does not match any configured tag format`\n\nIt seems that the git tag is not parsed correctly when using custom tag_format and semver2.\n\nSee a szenario in steps to reproduce.\n\n### Steps to reproduce\n\n1. Initialize git project and place cz configuration:\n```\ngit init .\ncat \u003c\u003c EOF | tee cz.toml\n[tool.commitizen]\nname = \"cz_conventional_commits\"\ntag_format = \"\\${major}.\\${minor}-\\${patch}\\${prerelease}\"\nversion_scheme = \"semver2\"\nversion = \"0.0.1\"\nupdate_changelog_on_bump = true\nEOF\n```\n2. Create a first commit\n```\necho \"# test\" | tee README.md\ngit add README.md cz.toml\ngit commit -m \"fix: Add readme file\"\n```\n3. Bump a prerelease\n```\ncz bump --prerelease rc --yes\n```\n4. Add changes, commit and create changelog\n```\necho \"Some changes\" | tee -a README.md\ngit add README.md\ngit commit -m \"fix: Add changes to readme file\"\n```\n5. Try to bump another prerelease version (**failing**)\n```\ncz bump --prerelease rc --yes\n```\n5. Generate changelog (**succeeding with warning**)\n```\ncz changelog\n```\n6. Try to bump prerelease version again (**succeeding**)\n```\ncz bump --prerelease rc\n```\n\n### Current behavior\n\nBumping without prior changelog generation fails with: \n\n`Invalid version tag: '0.0-2rc.0' does not match any configured tag format`\n\nOnly if the changelog is created before bumping (so that `# Unreleased` heading appears) let's you create a bump.\n\nFurthermore commitizen does not recognize custom tags with prerelease part correctly, resulting in warnings using `cz changelog` like: \n\n```\nInvalid version tag: '0.0-2rc.1' does not match any configured tag format\nInvalid version tag: '0.0-2rc.0' does not match any configured tag format\n```\n\n\n### Desired behavior\n\n1. Changelog generation shall recognize the tags using custom tag_format with `${prerelease}`\n2. Bumping with changelog creation shall succeed without generating changelog before\n\n### Screenshots\n\nn/a\n\n### Environment\n\nCommitizen Version: 4.9.1\nPython Version: 3.9.21 (main, Aug 19 2025, 00:00:00) \n[GCC 11.5.0 20240719 (Red Hat 11.5.0-5)]\nOperating System: Linux","author":{"url":"https://github.com/pydal","@type":"Person","name":"pydal"},"datePublished":"2025-09-18T09:23:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/1614/commitizen/issues/1614"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b2b1891d-ff76-1b88-9a06-58776eee32ba
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCABE:514A5:F1CA8E:14C8C21:6A4DD59F
html-safe-nonce133b5bbaa8067847f5e696e5dbbaae7476860a42219b13e16b94ef4462d8db9e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQUJFOjUxNEE1OkYxQ0E4RToxNEM4QzIxOjZBNERENTlGIiwidmlzaXRvcl9pZCI6IjY2ODQ3NDE4MTA1NzEzMDIzMDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacad4e571b804419b8a322f8c8df98e21680a2df928aa24c651b06deec9c5953d5
hovercard-subject-tagissue:3429472558
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/commitizen-tools/commitizen/1614/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6aa095dd57ed88b35179d8be8ebf5135240bd8203fe93524ac6977ac7b779503/commitizen-tools/commitizen/issues/1614
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6aa095dd57ed88b35179d8be8ebf5135240bd8203fe93524ac6977ac7b779503/commitizen-tools/commitizen/issues/1614
og:image:altDescription When using a custom tag_format like ${major}.${minor}-${patch}${prerelease} with semver2 the changelog cannot be create directly using cz bump --prerelase rc with update_changelog_on_bu...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepydal
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-preview
go-importgithub.com/commitizen-tools/commitizen git https://github.com/commitizen-tools/commitizen.git
octolytics-dimension-user_id62252524
octolytics-dimension-user_logincommitizen-tools
octolytics-dimension-repository_id106127589
octolytics-dimension-repository_nwocommitizen-tools/commitizen
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id106127589
octolytics-dimension-repository_network_root_nwocommitizen-tools/commitizen
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/commitizen-tools/commitizen/issues/1614#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fissues%2F1614
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fissues%2F1614
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=commitizen-tools%2Fcommitizen
Reloadhttps://github.com/commitizen-tools/commitizen/issues/1614
Reloadhttps://github.com/commitizen-tools/commitizen/issues/1614
Reloadhttps://github.com/commitizen-tools/commitizen/issues/1614
Please reload this pagehttps://github.com/commitizen-tools/commitizen/issues/1614
commitizen-tools https://github.com/commitizen-tools
commitizenhttps://github.com/commitizen-tools/commitizen
Please reload this pagehttps://github.com/commitizen-tools/commitizen/issues/1614
Notifications https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Fork 343 https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Star 3.5k https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Code https://github.com/commitizen-tools/commitizen
Issues 116 https://github.com/commitizen-tools/commitizen/issues
Pull requests 45 https://github.com/commitizen-tools/commitizen/pulls
Discussions https://github.com/commitizen-tools/commitizen/discussions
Actions https://github.com/commitizen-tools/commitizen/actions
Projects https://github.com/commitizen-tools/commitizen/projects
Security and quality 0 https://github.com/commitizen-tools/commitizen/security
Insights https://github.com/commitizen-tools/commitizen/pulse
Code https://github.com/commitizen-tools/commitizen
Issues https://github.com/commitizen-tools/commitizen/issues
Pull requests https://github.com/commitizen-tools/commitizen/pulls
Discussions https://github.com/commitizen-tools/commitizen/discussions
Actions https://github.com/commitizen-tools/commitizen/actions
Projects https://github.com/commitizen-tools/commitizen/projects
Security and quality https://github.com/commitizen-tools/commitizen/security
Insights https://github.com/commitizen-tools/commitizen/pulse
#1972https://github.com/commitizen-tools/commitizen/pull/1972
Direct bump with changelog creation not possible using semver2, custom tag_format and prerelease optionhttps://github.com/commitizen-tools/commitizen/issues/1614#top
#1972https://github.com/commitizen-tools/commitizen/pull/1972
issue-status: pr-createdhttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22issue-status%3A%20pr-created%22
os: Linuxissues related to linuxhttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22os%3A%20Linux%22
type: bughttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com/pydal
pydalhttps://github.com/pydal
on Sep 18, 2025https://github.com/commitizen-tools/commitizen/issues/1614#issue-3429472558
issue-status: pr-createdhttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22issue-status%3A%20pr-created%22
os: Linuxissues related to linuxhttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22os%3A%20Linux%22
type: bughttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.