Repository navigation
Conversation
Contributor
|
@octopols Thanks for wanting to contribute. However, this design is not something we want to incorporate. We have ongoing discussions about what modifying the commit area would look like in order to add more commit options aside from skipping hooks as well as design/engineering discussions for how to better handle hooks in general (skipping and failures). Taking this on in depth would require design and engineering capacity from our end that we do not currently have available. If you want to take a crack at a "Commit Anyway" dialog that appears on failure of a commit with hooks, we can take a look at that type of PR with a less invasive UI. |
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.
Closes #[issue number]
Description
This PR adds the ability for users to skip pre-commit hooks on a per-commit basis by adding a checkbox to the commit UI that enables the
--no-verifyflag when creating commits.Changes Made:
skipPrecommitHooks?: booleanto theICommitContextinterfacecreateCommitfunction to accept and use theskipPrecommitHooksparameter, appending--no-verifyto the git command when enabledskipPrecommitHooksproperty from the commit context to thecreateCommitfunctionDesign Decisions:
Testing:
Screenshots
Release notes
Notes: Added option to skip pre-commit hooks per commit. Users can now check a "Skip pre-commit hooks" checkbox in the commit UI to bypass pre-commit hooks for individual commits using the
--no-verifyflag.