Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip hooks installation when env variable is set #87

Closed
pantosha opened this issue May 30, 2023 · 4 comments
Closed

Skip hooks installation when env variable is set #87

pantosha opened this issue May 30, 2023 · 4 comments
Labels
good first issue Good for newcomers

Comments

@pantosha
Copy link

pantosha commented May 30, 2023

It's useful to skip git hooks installation when environment variable is set, e.g. SIMPLE_GIT_HOOKS=0

Similar functionality in husky: https://typicode.github.io/husky/guide.html#bypass-hooks

@toplenboren
Copy link
Owner

Hi, yep, this would be a nice feature to implement. However, if im not mistaken, you can omit from using git hooks using --no-verify option when you run git commit

@7rulnik
Copy link

7rulnik commented Sep 22, 2023

Yeah, you can commit via CLI, but in GUI (like Fork) usually it's not really possible

@jochemkeller
Copy link

I think this issue can be closed once #96 is made available as a new NPM version 🙏

@toplenboren
Copy link
Owner

Should be live in 2.10.0. Thanks @pantosha for the issue and big thanks to the @bhanuprasadcherukuvada for the PR #96

https://www.npmjs.com/package/simple-git-hooks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants