René's URL Explorer Experiment


Title: Discussion on check-consistency · Issue #595 · commitizen-tools/commitizen · GitHub

Open Graph Title: Discussion on check-consistency · Issue #595 · commitizen-tools/commitizen

X Title: Discussion on check-consistency · Issue #595 · commitizen-tools/commitizen

Description: Description Hi, I've doubt on how check-consistency flag works. Steps to reproduce have a project managed with poetry, with a pyproject.toml like the following [tool.poetry] name = "cool_proj" version = "2.5.7" <<<< this is mandatory for...

Open Graph Description: Description Hi, I've doubt on how check-consistency flag works. Steps to reproduce have a project managed with poetry, with a pyproject.toml like the following [tool.poetry] name = "cool_proj" vers...

X Description: Description Hi, I've doubt on how check-consistency flag works. Steps to reproduce have a project managed with poetry, with a pyproject.toml like the following [tool.poetry] name = "cool_p...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Discussion on check-consistency","articleBody":"### Description\n\nHi,\r\nI've doubt on how `check-consistency` flag works.\r\n\n\n### Steps to reproduce\n\n1. have a project managed with poetry, with a pyproject.toml like the following\r\n```\r\n[tool.poetry]\r\n    name = \"cool_proj\"\r\n    version = \"2.5.7\"    \u003c\u003c\u003c\u003c this is mandatory for poetry to make the package\r\n...\r\n[tool.commitizen]\r\n    name = \"cz_conventional_commits\"\r\n    version = \"2.5.2\"   \u003c\u003c\u003c\u003c this is mandatory for commitizen\r\n    version_files = [\r\n        \"cool_proj/__init__.py:__version__\",\r\n        \"pyproject.toml:version\"\r\n    ]\r\n```\r\nand `__init__.py` contains\r\n```\r\n__version__ = \"2.5.2\"\r\n```\r\n2. run `poetry run cz bump --check-consistency`\r\n\n\n### Current behavior\n\nthe command works, it prints on stdout\r\n```\r\nBump version: 2.5.2 -\u003e 2.5.3        \u003c\u003c\u003c it takes the value from commitizen's toml section\r\ntag to create: 2.5.3\r\n```\r\n\n\n### Desired behavior\n\nthe expected could be a warning about version not consistent, because at least content of  `__init__.py`  differ from the expected (the one into commitizen's toml section).\r\n\r\nlooking at implementation, also the regex usage has major drawback in this kind of setup, because the regex surely find commitizen's \"version\" attribute, but it can miss the poetry's one, creating package with wrong number (it's taken from poetry section). \n\n### Screenshots\n\n_No response_\n\n### Environment\n\n- commitizen 2.34.0 \r\n- python 3.9.13\r\n- windows 11","author":{"url":"https://github.com/gpongelli","@type":"Person","name":"gpongelli"},"datePublished":"2022-09-23T13:05:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/595/commitizen/issues/595"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:33fc1c13-91fa-716c-fd2d-c57560a67643
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9E68:3B8B53:10C5DF6:1889908:6A4E33CE
html-safe-nonce51459dcad8e86e485687998255cdd06aeeaa8d22d6918e23ae41cb9e07ec14a3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTY4OjNCOEI1MzoxMEM1REY2OjE4ODk5MDg6NkE0RTMzQ0UiLCJ2aXNpdG9yX2lkIjoiODExNjAxNDQzNzYyMDM5NzAwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac399d51476b1f082a637d9030ea2b2a1cb3dc02772bdc35be82fc4d50a84eab12
hovercard-subject-tagissue:1383780438
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/595/issue_layout
twitter:imagehttps://opengraph.githubassets.com/aa1fb1ad008401f58bb1ad22e93106d5a36575aac77e4a8b49da91a9ada035b9/commitizen-tools/commitizen/issues/595
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/aa1fb1ad008401f58bb1ad22e93106d5a36575aac77e4a8b49da91a9ada035b9/commitizen-tools/commitizen/issues/595
og:image:altDescription Hi, I've doubt on how check-consistency flag works. Steps to reproduce have a project managed with poetry, with a pyproject.toml like the following [tool.poetry] name = "cool_proj" vers...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegpongelli
hostnamegithub.com
expected-hostnamegithub.com
None030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0
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
release42a6d378d7587a44c93aca255096cd66b7c8eb2d
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/commitizen-tools/commitizen/issues/595#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fissues%2F595
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%2F595
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/595
Reloadhttps://github.com/commitizen-tools/commitizen/issues/595
Reloadhttps://github.com/commitizen-tools/commitizen/issues/595
Please reload this pagehttps://github.com/commitizen-tools/commitizen/issues/595
commitizen-tools https://github.com/commitizen-tools
commitizenhttps://github.com/commitizen-tools/commitizen
Please reload this pagehttps://github.com/commitizen-tools/commitizen/issues/595
Notifications https://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen
Fork 344 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
#1978https://github.com/commitizen-tools/commitizen/pull/1978
Discussion on check-consistencyhttps://github.com/commitizen-tools/commitizen/issues/595#top
#1978https://github.com/commitizen-tools/commitizen/pull/1978
issue-status: pr-createdhttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22issue-status%3A%20pr-created%22
type: bughttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com/gpongelli
gpongellihttps://github.com/gpongelli
on Sep 23, 2022https://github.com/commitizen-tools/commitizen/issues/595#issue-1383780438
issue-status: pr-createdhttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22issue-status%3A%20pr-created%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.