feat(hooks): support interactive hook scripts#1925
Open
PhilipNelson5 wants to merge 2 commits intocommitizen-tools:masterfrom
Open
feat(hooks): support interactive hook scripts#1925PhilipNelson5 wants to merge 2 commits intocommitizen-tools:masterfrom
PhilipNelson5 wants to merge 2 commits intocommitizen-tools:masterfrom
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1925 +/- ##
=======================================
Coverage 98.23% 98.23%
=======================================
Files 61 61
Lines 2772 2779 +7
=======================================
+ Hits 2723 2730 +7
Misses 49 49 ☔ View full report in Codecov by Sentry. |
98d622f to
8746afc
Compare
Collaborator
|
Please fix the coverage pipeline, thanks |
Contributor
Author
|
@bearomorphism I added tests for |
da45b62 to
d483e68
Compare
Collaborator
|
Thank you for fixing the pipeline failures! @PhilipNelson5 @woile please review this feature |
woile
reviewed
Apr 15, 2026
5109dfa to
53cc1ae
Compare
53cc1ae to
47f3372
Compare
Contributor
Author
|
@bearomorphism I've brought in the changes you made in #1941 and mirrored them in this feature. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Was generative AI tooling used to co-author this PR?
Code Changes
uv run poe alllocally to ensure this change passes linter check and testsUpdate the documentation for the changesDocumentation Changes
Runuv run poe doclocally to ensure the documentation pages renders correctlyCheck 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
cz bump.Additional Context