René's URL Explorer Experiment


Title: Changelog can be generated with non-version tags as a header · Issue #741 · commitizen-tools/commitizen · GitHub

Open Graph Title: Changelog can be generated with non-version tags as a header · Issue #741 · commitizen-tools/commitizen

X Title: Changelog can be generated with non-version tags as a header · Issue #741 · commitizen-tools/commitizen

Description: Description Changelogs should be generated only with version tags as headers. Tags are indeed being checked that they are version tags when generating the changelog here, but this logic is missing for the latest commit's tag. This means ...

Open Graph Description: Description Changelogs should be generated only with version tags as headers. Tags are indeed being checked that they are version tags when generating the changelog here, but this logic is missing ...

X Description: Description Changelogs should be generated only with version tags as headers. Tags are indeed being checked that they are version tags when generating the changelog here, but this logic is missing ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Changelog can be generated with non-version tags as a header","articleBody":"### Description\r\n\r\nChangelogs should be generated only with version tags as headers. Tags are indeed being checked that they are version tags when generating the changelog [here](https://github.com/commitizen-tools/commitizen/blob/v3.2.1/commitizen/changelog.py#L58), but this logic is missing for the _latest_ commit's tag.\r\n\r\nThis means that changelogs can be generated with an incorrect tag for the latest version\r\n\r\nI've already opened a PR to fix this issue [here](https://github.com/commitizen-tools/commitizen/pull/740), I hope that's okay and is useful! 🙂 \r\nI'm open to suggestions if you see anything to improve there of course\r\n\r\n### Steps to reproduce\r\n\r\nOn a project with commitizen setup\r\n\r\n1. touch some-change\r\n2. `git commit -m \"feat: some change\"`\r\n3. `git tag a-tag-that-has-nothing-to-do-with-versions`\r\n4. `cz changelog --dry-run`\r\n\r\nSee that the output is\r\n```sh\r\n## a-tag-that-has-nothing-to-do-with-versions (2023-05-10)\r\n\r\n### Feat\r\n\r\n- some change\r\n```\r\n\r\ninstead of \r\n```sh\r\n## Unreleased\r\n...\r\n```\r\nor\r\n```sh\r\n## 0.1.0 (2023-05-10)\r\n...\r\n```\r\n\r\n### Current behavior\r\n\r\nNon-version tags can appear as the `latest` version header of the changelog\r\n\r\n### Desired behavior\r\n\r\nOnly version tags should ever appear in the changelog, for the latest change \u0026 subsequent changes\r\n\r\n### Screenshots\r\n\r\n_No response_\r\n\r\n### Environment\r\n\r\nCommitizen Version: 3.2.1\r\nPython Version: 3.10.8 (main, Dec 27 2022, 10:58:47) [Clang 14.0.0 (clang-1400.0.29.202)]\r\nOperating System: Darwin","author":{"url":"https://github.com/sacha-c","@type":"Person","name":"sacha-c"},"datePublished":"2023-05-10T19:59:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/741/commitizen/issues/741"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:57485ebc-4aab-475b-694a-6ce959986b11
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE88A:22B172:8211A5:BB595C:6A4FB2F2
html-safe-nonce08d2e834b7b703ff2254868d163f65df163bdaa34b182f208900fb850d0ec472
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFODhBOjIyQjE3Mjo4MjExQTU6QkI1OTVDOjZBNEZCMkYyIiwidmlzaXRvcl9pZCI6IjcxNzc2NDMzNTEzNjA5MTAwNjYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7138799c6476d6a1120d7acdad07df4e1f65c50c5077b79e8746bc3baebc0bad
hovercard-subject-tagissue:1704551150
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/741/issue_layout
twitter:imagehttps://opengraph.githubassets.com/ee7721e929076f89f09e59f7273074a4baefc3fc587eb06b32511b46c350aeb6/commitizen-tools/commitizen/issues/741
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ee7721e929076f89f09e59f7273074a4baefc3fc587eb06b32511b46c350aeb6/commitizen-tools/commitizen/issues/741
og:image:altDescription Changelogs should be generated only with version tags as headers. Tags are indeed being checked that they are version tags when generating the changelog here, but this logic is missing ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesacha-c
hostnamegithub.com
expected-hostnamegithub.com
Noneb92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9
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
release4b249b445842943ed31549e027f57a8ade9881ed
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/commitizen-tools/commitizen/issues/741#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fissues%2F741
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/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%2F741
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/741
Reloadhttps://github.com/commitizen-tools/commitizen/issues/741
Reloadhttps://github.com/commitizen-tools/commitizen/issues/741
Please reload this pagehttps://github.com/commitizen-tools/commitizen/issues/741
commitizen-tools https://github.com/commitizen-tools
commitizenhttps://github.com/commitizen-tools/commitizen
Please reload this pagehttps://github.com/commitizen-tools/commitizen/issues/741
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
#740https://github.com/commitizen-tools/commitizen/pull/740
Changelog can be generated with non-version tags as a headerhttps://github.com/commitizen-tools/commitizen/issues/741#top
#740https://github.com/commitizen-tools/commitizen/pull/740
type: bughttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%22
https://github.com/sacha-c
sacha-chttps://github.com/sacha-c
on May 10, 2023https://github.com/commitizen-tools/commitizen/issues/741#issue-1704551150
herehttps://github.com/commitizen-tools/commitizen/blob/v3.2.1/commitizen/changelog.py#L58
herehttps://github.com/commitizen-tools/commitizen/pull/740
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.