René's URL Explorer Experiment


Title: Fix deprecated precommit by timsu92 · Pull Request #1569 · commitizen-tools/commitizen · GitHub

Open Graph Title: Fix deprecated precommit by timsu92 · Pull Request #1569 · commitizen-tools/commitizen

X Title: Fix deprecated precommit by timsu92 · Pull Request #1569 · commitizen-tools/commitizen

Description: Description cz init modifies .pre-commit-config.yaml in a deprecated way. This PR fixes that, however, pre-commit must be upgraded to v3.2.0 onwards. Currently, commitizen is writing something like this to .pre-commit-config.yaml: - hooks: - id: commitizen - id: commitizen-branch stages: - push repo: https://github.com/commitizen-tools/commitizen rev: v4.8.3 However, pre-commit will complaint that it's deprecated like mentioned in #1560 . The upstream modification was proposed in pre-commit/pre-commit#2732, and fixed in pre-commit/pre-commit#2808 That means, "pre-push" starts to be usable in v3.2.0, while "push" starts to be deprecated. This changed has already been stated in https://github.com/commitizen-tools/commitizen/blob/master/docs/README.md?plain=1#L209 Consequently, these modifications were made: Change from "push" stage to "pre-push" stage Disallow old pre-commit to be used both in this project and when used by other projects Update test Checklist I have read the contributing guidelines Code Changes Add test cases to all the changes you introduce Run poetry all locally to ensure this change passes linter check and tests Manually test the changes: Verify the feature/bug fix works as expected in real-world scenarios Test edge cases and error conditions Ensure backward compatibility is maintained Document any manual testing steps performed Update the documentation for the changes Documentation Changes Run poetry doc locally to ensure the documentation pages renders correctly Check and fix any broken links (internal or external) in the documentation When running poetry doc, any broken internal documentation links will be reported in the console output like this: INFO - Doc file 'config.md' contains a link 'commands/bump.md#-post_bump_hooks', but the doc 'commands/bump.md' does not contain an anchor '#-post_bump_hooks'. Expected Behavior See commitizen generates config like this: - hooks: - id: commitizen - id: commitizen-branch stages: - pre-push repo: https://github.com/commitizen-tools/commitizen rev: v4.8.3 Steps to Test This Pull Request cz init Enable both pre-commit hooks Additional Context Close #1560

Open Graph Description: Description cz init modifies .pre-commit-config.yaml in a deprecated way. This PR fixes that, however, pre-commit must be upgraded to v3.2.0 onwards. Currently, commitizen is writing something like...

X Description: Description cz init modifies .pre-commit-config.yaml in a deprecated way. This PR fixes that, however, pre-commit must be upgraded to v3.2.0 onwards. Currently, commitizen is writing something like...

Opengraph URL: https://github.com/commitizen-tools/commitizen/pull/1569

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:78c80a8c-eb81-e9ff-e003-97666b8cf7ea
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA340:39A6E:60B90A:864230:6A57D6CA
html-safe-nonce71f2a3b3b17d420b0dc5ac0d61e0dfb5c74a0452acf809542bd032d7c7980a04
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzQwOjM5QTZFOjYwQjkwQTo4NjQyMzA6NkE1N0Q2Q0EiLCJ2aXNpdG9yX2lkIjoiMjAyMzg3NDYzNzAzNDE0OTU3OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac618bddda73d58429de3e6a0c7721018dcbf949419a35d93a7dfdec2571b5c214
hovercard-subject-tagpull_request:2724516310
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/commitizen-tools/commitizen/pull/1569/files
twitter:imagehttps://avatars.githubusercontent.com/u/33785401?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/33785401?s=400&v=4
og:image:altDescription cz init modifies .pre-commit-config.yaml in a deprecated way. This PR fixes that, however, pre-commit must be upgraded to v3.2.0 onwards. Currently, commitizen is writing something like...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None837767abbd14b05f219fd812ef2842c659968b63619e1b966dded83972ab5bca
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9044d0f867aa9892268d1f430238ff123e11ee91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/commitizen-tools/commitizen/pull/1569/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fpull%2F1569%2Ffiles
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%2Fpull%2F1569%2Ffiles
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%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=commitizen-tools%2Fcommitizen
Reloadhttps://github.com/commitizen-tools/commitizen/pull/1569/files
Reloadhttps://github.com/commitizen-tools/commitizen/pull/1569/files
Reloadhttps://github.com/commitizen-tools/commitizen/pull/1569/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1569/files
commitizen-tools https://github.com/commitizen-tools
commitizenhttps://github.com/commitizen-tools/commitizen
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1569/files
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 118 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
Sign up for GitHub https://github.com/signup?return_to=%2Fcommitizen-tools%2Fcommitizen%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fcommitizen-tools%2Fcommitizen%2Fissues%2Fnew%2Fchoose
Lee-Whttps://github.com/Lee-W
commitizen-tools:v4-9-0-testhttps://github.com/commitizen-tools/commitizen/tree/v4-9-0-test
timsu92:fix_deprecated_precommithttps://github.com/timsu92/commitizen/tree/fix_deprecated_precommit
Conversation 3 https://github.com/commitizen-tools/commitizen/pull/1569
Commits 2 https://github.com/commitizen-tools/commitizen/pull/1569/commits
Checks 18 https://github.com/commitizen-tools/commitizen/pull/1569/checks
Files changed https://github.com/commitizen-tools/commitizen/pull/1569/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1569/files
Fix deprecated precommit https://github.com/commitizen-tools/commitizen/pull/1569/files#top
Show all changes 2 commits https://github.com/commitizen-tools/commitizen/pull/1569/files
9cfb55e fix(init): use pre-push as pre-commit stage timsu92 Aug 6, 2025 https://github.com/commitizen-tools/commitizen/pull/1569/commits/9cfb55ebf78cc4a8e20fe4532ea55e6e21cf66c2
a893655 test(init): check "pre-" is showing in outputs timsu92 Aug 6, 2025 https://github.com/commitizen-tools/commitizen/pull/1569/commits/a893655aeb92db4d373753506ea99a55810d2abc
Clear filters https://github.com/commitizen-tools/commitizen/pull/1569/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1569/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1569/files
.pre-commit-hooks.yaml https://github.com/commitizen-tools/commitizen/pull/1569/files#diff-cb921d5df435fe404b4daf451cf783709ccebe9c346038af6036644e7386c13d
init.py https://github.com/commitizen-tools/commitizen/pull/1569/files#diff-43bdf96da59e2edd79c3797ccaf86dda6495266c02768cb045502851ebb047e8
poetry.lock https://github.com/commitizen-tools/commitizen/pull/1569/files#diff-f53a023eedfa3fbf2925ec7dc76eecdc954ea94b7e47065393dbad519613dc89
pyproject.toml https://github.com/commitizen-tools/commitizen/pull/1569/files#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711
test_init_command.py https://github.com/commitizen-tools/commitizen/pull/1569/files#diff-759a8a6bf7feb1609205e246cb3677d685be1cc8c1bad4bd558e22694ed56002
.pre-commit-hooks.yamlhttps://github.com/commitizen-tools/commitizen/pull/1569/files#diff-cb921d5df435fe404b4daf451cf783709ccebe9c346038af6036644e7386c13d
View file https://github.com/timsu92/commitizen/blob/a893655aeb92db4d373753506ea99a55810d2abc/.pre-commit-hooks.yaml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1569/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1569/files#diff-cb921d5df435fe404b4daf451cf783709ccebe9c346038af6036644e7386c13d
commitizen/commands/init.pyhttps://github.com/commitizen-tools/commitizen/pull/1569/files#diff-43bdf96da59e2edd79c3797ccaf86dda6495266c02768cb045502851ebb047e8
View file https://github.com/timsu92/commitizen/blob/a893655aeb92db4d373753506ea99a55810d2abc/commitizen/commands/init.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1569/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1569/files#diff-43bdf96da59e2edd79c3797ccaf86dda6495266c02768cb045502851ebb047e8
https://github.com/commitizen-tools/commitizen/pull/1569/files#diff-43bdf96da59e2edd79c3797ccaf86dda6495266c02768cb045502851ebb047e8
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1569/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1569/files
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.