René's URL Explorer Experiment


Title: feat(hooks): support interactive hook scripts by PhilipNelson5 · Pull Request #1925 · commitizen-tools/commitizen · GitHub

Open Graph Title: feat(hooks): support interactive hook scripts by PhilipNelson5 · Pull Request #1925 · commitizen-tools/commitizen

X Title: feat(hooks): support interactive hook scripts by PhilipNelson5 · Pull Request #1925 · commitizen-tools/commitizen

Description: Description When a pre/post bump hook needs user input it fails because stdin, stdout, and stderr are redirected. This feature adds a new cmd utility to run a command without capturing/redirecting input or output to the subprocess. This allows interactive hooks to request input and display output to the user interactively. Checklist I have read the contributing guidelines Was generative AI tooling used to co-author this PR? Yes (please specify the tool below) Code Changes Add test cases to all the changes you introduce Run uv run poe 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 uv run poe doc locally to ensure the documentation pages renders correctly Check and fix any broken links (internal or external) Expected Behavior When a pre/post bump hook tries to get user input, it successfully does so. Steps to Test This Pull Request configure a pre/post bump hook which prompts the user for input. run cz bump. the hook successfully requests user input and is able to capture it without issue. Additional Context

Open Graph Description: Description When a pre/post bump hook needs user input it fails because stdin, stdout, and stderr are redirected. This feature adds a new cmd utility to run a command without capturing/redirecting...

X Description: Description When a pre/post bump hook needs user input it fails because stdin, stdout, and stderr are redirected. This feature adds a new cmd utility to run a command without capturing/redirecting...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:579a4e82-0fd7-9e29-7eba-4ef367ae94f2
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA448:12B1F0:9E825F:EA4929:6A4E1FA2
html-safe-nonce5589438200ac7f7a68859f8a40bc52eedc2d4fb5ffe0a87ba0f65e332d32d647
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDQ4OjEyQjFGMDo5RTgyNUY6RUE0OTI5OjZBNEUxRkEyIiwidmlzaXRvcl9pZCI6IjI2NDAyNzE3MTc1MzcwMzAwNTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac7d70738e33226b5ddb611242f37ad914fe9b17c2559ee18496248649ef521ece
hovercard-subject-tagpull_request:3495086969
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/1925/files
twitter:imagehttps://avatars.githubusercontent.com/u/19827319?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/19827319?s=400&v=4
og:image:altDescription When a pre/post bump hook needs user input it fails because stdin, stdout, and stderr are redirected. This feature adds a new cmd utility to run a command without capturing/redirecting...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0
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
release5fe497b4815fcce3df76c0e246faa739a82c3124
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/commitizen-tools/commitizen/pull/1925/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcommitizen-tools%2Fcommitizen%2Fpull%2F1925%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/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%2Fpull%2F1925%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/1925/files
Reloadhttps://github.com/commitizen-tools/commitizen/pull/1925/files
Reloadhttps://github.com/commitizen-tools/commitizen/pull/1925/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1925/files
commitizen-tools https://github.com/commitizen-tools
commitizenhttps://github.com/commitizen-tools/commitizen
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1925/files
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
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
woilehttps://github.com/woile
commitizen-tools:masterhttps://github.com/commitizen-tools/commitizen/tree/master
PhilipNelson5:feat/interactive-hookshttps://github.com/PhilipNelson5/commitizen/tree/feat/interactive-hooks
Conversation 14 https://github.com/commitizen-tools/commitizen/pull/1925
Commits 2 https://github.com/commitizen-tools/commitizen/pull/1925/commits
Checks 20 https://github.com/commitizen-tools/commitizen/pull/1925/checks
Files changed https://github.com/commitizen-tools/commitizen/pull/1925/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1925/files
feat(hooks): support interactive hook scripts https://github.com/commitizen-tools/commitizen/pull/1925/files#top
Show all changes 2 commits https://github.com/commitizen-tools/commitizen/pull/1925/files
19f53b9 feat(hooks): support interactive hooks scripts PhilipNelson5 Apr 6, 2026 https://github.com/commitizen-tools/commitizen/pull/1925/commits/19f53b9a8c6131da7e50601e644694e43ec57278
47f3372 test: add tests for cmd.run and cmd.run_interactive PhilipNelson5 Apr 12, 2026 https://github.com/commitizen-tools/commitizen/pull/1925/commits/47f3372616044af463316b683987e02bb7fee0eb
Clear filters https://github.com/commitizen-tools/commitizen/pull/1925/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1925/files
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1925/files
cmd.py https://github.com/commitizen-tools/commitizen/pull/1925/files#diff-81d23db4388c47363cf7ca81a0de90a1464a71d9a581c2060431b9ae41a5e8c8
hooks.py https://github.com/commitizen-tools/commitizen/pull/1925/files#diff-eb066b3355dd121ab2ba85423f286322c44c080fd99b8582427fd9ed589ad217
test_bump_hooks.py https://github.com/commitizen-tools/commitizen/pull/1925/files#diff-e139d43f7347bea98894a6ad6cb4b65ee2f5490fb42f4395faed7dc3311db480
test_cmd.py https://github.com/commitizen-tools/commitizen/pull/1925/files#diff-60497cc703a3a9baddaf30a3384a7774b89bc52007e28c34828758f055fcd72c
commitizen/cmd.pyhttps://github.com/commitizen-tools/commitizen/pull/1925/files#diff-81d23db4388c47363cf7ca81a0de90a1464a71d9a581c2060431b9ae41a5e8c8
View file https://github.com/PhilipNelson5/commitizen/blob/47f3372616044af463316b683987e02bb7fee0eb/commitizen/cmd.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1925/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1925/files#diff-81d23db4388c47363cf7ca81a0de90a1464a71d9a581c2060431b9ae41a5e8c8
commitizen/hooks.pyhttps://github.com/commitizen-tools/commitizen/pull/1925/files#diff-eb066b3355dd121ab2ba85423f286322c44c080fd99b8582427fd9ed589ad217
View file https://github.com/PhilipNelson5/commitizen/blob/47f3372616044af463316b683987e02bb7fee0eb/commitizen/hooks.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1925/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1925/files#diff-eb066b3355dd121ab2ba85423f286322c44c080fd99b8582427fd9ed589ad217
https://github.com/commitizen-tools/commitizen/pull/1925/files#diff-eb066b3355dd121ab2ba85423f286322c44c080fd99b8582427fd9ed589ad217
tests/test_bump_hooks.pyhttps://github.com/commitizen-tools/commitizen/pull/1925/files#diff-e139d43f7347bea98894a6ad6cb4b65ee2f5490fb42f4395faed7dc3311db480
View file https://github.com/PhilipNelson5/commitizen/blob/47f3372616044af463316b683987e02bb7fee0eb/tests/test_bump_hooks.py
Open in desktop https://desktop.github.com
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1925/files
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1925/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1925/files#diff-e139d43f7347bea98894a6ad6cb4b65ee2f5490fb42f4395faed7dc3311db480
https://github.com/commitizen-tools/commitizen/pull/1925/files#diff-e139d43f7347bea98894a6ad6cb4b65ee2f5490fb42f4395faed7dc3311db480
https://github.com/commitizen-tools/commitizen/pull/1925/files#diff-e139d43f7347bea98894a6ad6cb4b65ee2f5490fb42f4395faed7dc3311db480
tests/test_cmd.pyhttps://github.com/commitizen-tools/commitizen/pull/1925/files#diff-60497cc703a3a9baddaf30a3384a7774b89bc52007e28c34828758f055fcd72c
View file https://github.com/PhilipNelson5/commitizen/blob/47f3372616044af463316b683987e02bb7fee0eb/tests/test_cmd.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/commitizen-tools/commitizen/pull/1925/{{ revealButtonHref }}
https://github.com/commitizen-tools/commitizen/pull/1925/files#diff-60497cc703a3a9baddaf30a3384a7774b89bc52007e28c34828758f055fcd72c
Please reload this pagehttps://github.com/commitizen-tools/commitizen/pull/1925/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.