-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Remove husky #24887
Remove husky #24887
Conversation
💚 Build Succeeded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Defensive and clear 👍
For reference, here is the previous pre-commit hook: #!/bin/sh
# husky
cd .
npm run --json | grep -q '"precommit":'
if [ $? -ne 0 ]; then
exit 0
fi
npm run precommit --silent
if [ $? -ne 0 ]; then
echo
echo "husky - pre-commit hook failed (add --no-verify to bypass)"
echo
exit 1
fi |
@tylersmalley I just have applied every change we talked about! Do you mind take a look to it again? |
💚 Build Succeeded |
@tylersmalley I just applied every change you suggest! Thanks for the feedback 😃 |
retest |
1 similar comment
retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Ah, you will need to update this branch from master. |
yeah, done! |
💚 Build Succeeded |
* feat(NA): remove husky dependency and implement a git hooks registering mechanism. * fix(NA): apply executable chmod to the created kbn git hook script. * fix(NA): run npm script on the git pre commit hook silently. * refact(NA): apply changes according the PR review. * refact(NA): apply changes according PR review.
* feat(NA): remove husky dependency and implement a git hooks registering mechanism. * fix(NA): apply executable chmod to the created kbn git hook script. * fix(NA): run npm script on the git pre commit hook silently. * refact(NA): apply changes according the PR review. * refact(NA): apply changes according PR review.
6.x: 4b31c9b |
Unfortunately this does not seem to be compatible with the
because it mistakenly assumes |
Husky resolves the path from the |
@weltenwort thanks for letting us know about it! I think maybe we can use |
|
@weltenwort can you please take a look on #25870 as you were the first reporting this bug? 😃 Thank you very much! |
This PR closes the issue #19576
It basically removes the
husky
3rd party dependency and provides a simple way to register a git hook script for thepre-commit
.