feat(hooks): support interactive hook scripts#1925
Open
PhilipNelson5 wants to merge 1 commit intocommitizen-tools:masterfrom
Open
feat(hooks): support interactive hook scripts#1925PhilipNelson5 wants to merge 1 commit intocommitizen-tools:masterfrom
PhilipNelson5 wants to merge 1 commit intocommitizen-tools:masterfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1925 +/- ##
==========================================
- Coverage 97.99% 97.88% -0.12%
==========================================
Files 60 60
Lines 2689 2689
==========================================
- Hits 2635 2632 -3
- Misses 54 57 +3 ☔ View full report in Codecov by Sentry. |
335f5c7 to
98d622f
Compare
98d622f to
8746afc
Compare
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 use input, it successfully does so.
Steps to Test This Pull Request
cz bump.Additional Context