René's URL Explorer Experiment


Title: cz init generates deprecated pre-commit configuration · Issue #1560 · commitizen-tools/commitizen · GitHub

Open Graph Title: cz init generates deprecated pre-commit configuration · Issue #1560 · commitizen-tools/commitizen

X Title: cz init generates deprecated pre-commit configuration · Issue #1560 · commitizen-tools/commitizen

Description: Description Short summary When I am in a new environment and run cz init and enable pre-commit hooks, the .pre-commit-config.yaml is generated with the commitizen-branch hook and "push" stage which is deprecated. Detailed When running th...

Open Graph Description: Description Short summary When I am in a new environment and run cz init and enable pre-commit hooks, the .pre-commit-config.yaml is generated with the commitizen-branch hook and "push" stage which...

X Description: Description Short summary When I am in a new environment and run cz init and enable pre-commit hooks, the .pre-commit-config.yaml is generated with the commitizen-branch hook and "push" s...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"cz init generates deprecated pre-commit configuration","articleBody":"### Description\n\n**Short summary**\nWhen I am in a new environment and run `cz init` and enable pre-commit hooks, the .pre-commit-config.yaml is generated with the commitizen-branch hook and \"push\" stage which is deprecated.\n\n**Detailed**\nWhen running the command `cz init` i.e. with the following configuration:\n\n? Please choose a supported config file:  .cz.toml\n? Please choose a cz (commit rule): (default: cz_conventional_commits) cz_conventional_commits\n? Choose the source of the version: commitizen: Fetch and set version in commitizen config (default)\nNo Existing Tag. Set tag to v0.0.1\n? Choose version scheme:  semver\n? Please enter the correct version format: (default: \"$version\")\n? Create changelog automatically on bump Yes\n? Keep major version zero (0.x) during breaking changes Yes\n? What types of pre-commit hook you want to install? (Leave blank if you don't want to install) [commit-msg]\ncommitizen pre-commit hook is now installed in your '.git'\n\nThe resulting .pre-commit-config.yaml looks like this:\nrepos:\n- hooks:\n  - id: commitizen\n  - id: commitizen-branch\n    stages:\n    - push\n  repo: https://github.com/commitizen-tools/commitizen\n  rev: v4.2.1\n\n\nRunning the command `pre-commit` will show the warning: \n[WARNING] hook id `commitizen-branch` uses deprecated stage names (push) which will be removed in a future version.  run: `pre-commit migrate-config` to automatically fix this.\n\n\nWhen I run `pre-commit migrate-config.yaml` the configuration will result in:\nrepos:\n- hooks:\n  - id: commitizen\n  - id: commitizen-branch\n    stages:\n    - pre-push\n  repo: https://github.com/commitizen-tools/commitizen\n  rev: v4.2.1\n\n--\u003e the stage of the commitizen-branch hook is \"pre-push\" instead of \"push\"\n\n\n### Possible Solution\n\nThe pre-commit migrate-config.yaml is directly created with the \"pre-push\" stage.\n\nSo that the complete config looks like:\n- hooks:\n  - id: commitizen\n  - id: commitizen-branch\n    stages:\n    - pre-push\n  repo: https://github.com/commitizen-tools/commitizen\n  rev: __version__\n\n\n### Additional context\n\nWhen I understand the code correctly, the configuration is created in the _install_pre_commit_hook method where the \"stages\" property is set to [\"push\"] instead of [\"pre-push\"]:\nhttps://github.com/commitizen-tools/commitizen/blob/b2e9c1be5ead017a9c40dc8918dc65e8a86812c0/commitizen/commands/init.py#L333\n\n### Related issues\n\n_No response_","author":{"url":"https://github.com/jonaskoeASYS","@type":"Person","name":"jonaskoeASYS"},"datePublished":"2025-07-15T14:06:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1560/commitizen/issues/1560"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:29d8574c-728b-4beb-eab1-9e2cc87e4cda
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idEA34:272B2:2D0116:3E199A:6A58460D
html-safe-nonce2262afd790508c90e2fef69271cc04c76e885a2e58c1079bb6935b80a6cf0a3c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTM0OjI3MkIyOjJEMDExNjozRTE5OUE6NkE1ODQ2MEQiLCJ2aXNpdG9yX2lkIjoiODU5NjYyNTM2MjU1NzM1NTUzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacd2af39742eb3214a63a43755c609b245a794d05d6a639d88eaeea33b0ecb944d
hovercard-subject-tagissue:3232423628
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/1560/issue_layout
twitter:imagehttps://opengraph.githubassets.com/5b0410395318e1d856cf4de7e1e1f02a151f5472e9eefec2b50ffbd88a61095c/commitizen-tools/commitizen/issues/1560
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5b0410395318e1d856cf4de7e1e1f02a151f5472e9eefec2b50ffbd88a61095c/commitizen-tools/commitizen/issues/1560
og:image:altDescription Short summary When I am in a new environment and run cz init and enable pre-commit hooks, the .pre-commit-config.yaml is generated with the commitizen-branch hook and "push" stage which...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejonaskoeASYS
hostnamegithub.com
expected-hostnamegithub.com
None5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6
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
release8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/commitizen-tools/commitizen/issues/1560#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fissues%2F1560
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%2F1560
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/1560
Reloadhttps://github.com/commitizen-tools/commitizen/issues/1560
Reloadhttps://github.com/commitizen-tools/commitizen/issues/1560
Please reload this pagehttps://github.com/commitizen-tools/commitizen/issues/1560
commitizen-tools https://github.com/commitizen-tools
commitizenhttps://github.com/commitizen-tools/commitizen
Please reload this pagehttps://github.com/commitizen-tools/commitizen/issues/1560
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 119 https://github.com/commitizen-tools/commitizen/issues
Pull requests 47 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
#1569https://github.com/commitizen-tools/commitizen/pull/1569
cz init generates deprecated pre-commit configurationhttps://github.com/commitizen-tools/commitizen/issues/1560#top
#1569https://github.com/commitizen-tools/commitizen/pull/1569
issue-status: needs-triagehttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22issue-status%3A%20needs-triage%22
type: featureA new enhacement proposalhttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22type%3A%20feature%22
https://github.com/jonaskoeASYS
jonaskoeASYShttps://github.com/jonaskoeASYS
on Jul 15, 2025https://github.com/commitizen-tools/commitizen/issues/1560#issue-3232423628
https://github.com/commitizen-tools/commitizenhttps://github.com/commitizen-tools/commitizen
https://github.com/commitizen-tools/commitizenhttps://github.com/commitizen-tools/commitizen
https://github.com/commitizen-tools/commitizenhttps://github.com/commitizen-tools/commitizen
commitizen/commitizen/commands/init.pyhttps://github.com/commitizen-tools/commitizen/blob/b2e9c1be5ead017a9c40dc8918dc65e8a86812c0/commitizen/commands/init.py#L333
b2e9c1bhttps://github.com/commitizen-tools/commitizen/commit/b2e9c1be5ead017a9c40dc8918dc65e8a86812c0
issue-status: needs-triagehttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22issue-status%3A%20needs-triage%22
type: featureA new enhacement proposalhttps://github.com/commitizen-tools/commitizen/issues?q=state%3Aopen%20label%3A%22type%3A%20feature%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.