René's URL Explorer Experiment


Title: scm provider cant find current tag with build metadata if matched by legacy_tag_formats · Issue #2015 · commitizen-tools/commitizen · GitHub

Open Graph Title: scm provider cant find current tag with build metadata if matched by legacy_tag_formats · Issue #2015 · commitizen-tools/commitizen

X Title: scm provider cant find current tag with build metadata if matched by legacy_tag_formats · Issue #2015 · commitizen-tools/commitizen

Description: Description When using version_provider = "scm" and a legacy tag format that matches PEP 440 prerelease tags with local/build metadata, commitizen appears to match the tag but fails to use it as the current tag for bump. Even if a reacha...

Open Graph Description: Description When using version_provider = "scm" and a legacy tag format that matches PEP 440 prerelease tags with local/build metadata, commitizen appears to match the tag but fails to use it as th...

X Description: Description When using version_provider = "scm" and a legacy tag format that matches PEP 440 prerelease tags with local/build metadata, commitizen appears to match the tag but fails to us...

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

X: @github

direct link

Domain: Github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"scm provider cant find current tag with build metadata if matched by legacy_tag_formats","articleBody":"### Description\n\nWhen using `version_provider = \"scm\"` and a legacy tag format that matches PEP 440 prerelease tags with local/build metadata, commitizen appears to match the tag but fails to use it as the current tag for `bump`.\n\nEven if a reachable tag like `1.0.1rc0+gha` exists and should be used, `cz bump --prerelease rc --build-metadata gha` reports that no matching tag could be found.\n\n### Steps to reproduce\n\nIn some dummy folder:\n\n```\ngit init\n\ncat \u003e pyproject.toml \u003c\u003c'EOF'\n[tool.commitizen]\nversion_provider = \"scm\"\nversion_scheme = \"pep440\"\ntag_format = \"$version\"\nlegacy_tag_formats = [\n    '$major.$minor.$patch$prerelease\\+.*',\n]\nEOF\n```\n\nthen seed the release history:\n\n```\necho \"a\" \u003e file.txt\ngit add pyproject.toml file.txt\ngit commit -m \"feat: initial\"\ngit tag 1.0.1rc0+gha\n```\n\nthen make a follow up commit, and try to make a new release:\n\n```\necho \"b\" \u003e\u003e file.txt\ngit commit -am \"fix: bar\"\ncz bump --prerelease rc --build-metadata gha --get-next\n```\n\nproduces:\n```\nNo tag matching configuration could be found.\nPossible causes:\n- version in configuration is not the current version\n- tag_format or legacy_tag_formats is missing, check them using 'git tag --list'\n\n? Is this the first tag created? No\n1.1.0rc0+gha\n```\n\n### Current behavior\n\nEven if a tag like 1.0.1rc0+gha` exists, Commitizen reports:\n\n```\nNo tag matching configuration could be found.\nPossible causes:\n- version in configuration is not the current version\n- tag_format or legacy_tag_formats is missing, check them using 'git tag --list'\n```\n\nIf answering No to “Is this the first tag created?”, Commitizen appears to compute from more history than expected instead of using 1.0.1rc0+gha:\n\n```\n? Is this the first tag created? No\n1.1.0rc0+gha\n```\n\n### Desired behavior\n\nIf the current tag is of the pattern `1.0.1rc0+gha`, cz should recognize it and properly bump to `1.0.1rc1+gha` when using `cz bump --prerelease rc --build-metadata gha  --get-next`\n\n### Screenshots\n\n_No response_\n\n### Environment\n\nCommitizen Version: 4.16.3\nPython Version: 3.14.6 (main, Jun 11 2026, 04:03:53) [Clang 22.1.3 ]\nOperating System: Linux\n","author":{"url":"https://github.com/theinditector","@type":"Person","name":"theinditector"},"datePublished":"2026-06-16T15:59:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2015/commitizen/issues/2015"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b9a71b81-4b94-b51e-1ced-e348fb9f0726
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9F64:1819F:44B951:652421:6A63215A
html-safe-nonceb6b40180142bb2106a2dc5082d6ac12ad8fec8c2301149c0ae0e6088a706ad56
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjY0OjE4MTlGOjQ0Qjk1MTo2NTI0MjE6NkE2MzIxNUEiLCJ2aXNpdG9yX2lkIjoiMTkzNDIyNzQyMTczMzIxMCIsInJlZ2lvbl9lZGdlIjoid2VzdHVzMiIsInJlZ2lvbl9yZW5kZXIiOiJ3ZXN0dXMyIn0=
visitor-hmac1b792cd1a6438f5df165f149e0a3a1a2ffd83c0cd366e65d332c30f5407a7f3c
hovercard-subject-tagissue:4675850288
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/2015/issue_layout
twitter:imagehttps://opengraph.githubassets.com/aebb14ab5e3774105079428baf07b25a19210a4fd18b543e8b6c40baea519271/commitizen-tools/commitizen/issues/2015
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/aebb14ab5e3774105079428baf07b25a19210a4fd18b543e8b6c40baea519271/commitizen-tools/commitizen/issues/2015
og:image:altDescription When using version_provider = "scm" and a legacy tag format that matches PEP 440 prerelease tags with local/build metadata, commitizen appears to match the tag but fails to use it as th...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametheinditector
hostnamegithub.com
expected-hostnamegithub.com
None1a6c056e02f174fffc096c521ec0ff6fb83e40a2ec8cb8875466ec1524872dd6
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
release6a93e25585f487ddff9e3996c06d5b869d6e1828
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://Github.com/commitizen-tools/commitizen/issues/2015#start-of-content
https://Github.com/
Sign in https://Github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fissues%2F2015
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
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
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/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/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/enterprise/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%2F2015
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/2015
Reloadhttps://Github.com/commitizen-tools/commitizen/issues/2015
Reloadhttps://Github.com/commitizen-tools/commitizen/issues/2015
Please reload this pagehttps://Github.com/commitizen-tools/commitizen/issues/2015
commitizen-tools https://Github.com/commitizen-tools
commitizenhttps://Github.com/commitizen-tools/commitizen
Please reload this pagehttps://Github.com/commitizen-tools/commitizen/issues/2015
Notifications https://Github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Fork 346 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 46 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
scm provider cant find current tag with build metadata if matched by legacy_tag_formatshttps://Github.com/commitizen-tools/commitizen/issues/2015#top
issue-status: needs-triagehttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22issue-status%3A%20needs-triage%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/theinditector
theinditectorhttps://github.com/theinditector
on Jun 16, 2026https://github.com/commitizen-tools/commitizen/issues/2015#issue-4675850288
issue-status: needs-triagehttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22issue-status%3A%20needs-triage%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.