-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
--no-verify to bypass is not currently working... #137
Comments
https://git-scm.com/docs/githooks prepare-commit-msg commit-msg |
@alexeyten that makes sense - is it possible to update Husky to not show |
@alexeyten @FJunior225 very good point, I'll add it in the next release 👍 |
Fixed in |
Hello,
I am creating a custom prepare-commit-msg hook that appends an ID to the commit msg. If no ID is found within the message or branch name, I log an error and
exit(1)
. Iexit(1)
because I do not want to permit someone to commit a message without an ID. For some unknown reason,--no-verify
does not bypass the commit message if an error occurs. I was hoping someone here can assist...The script within the project I am adding a commit has the following in the
package.json
:"preparecommitmsg": "node node_modules/***/src/preparecommitmsg-hook.js"
The text was updated successfully, but these errors were encountered: