-
Notifications
You must be signed in to change notification settings - Fork 20.6k
Build: Fix commitplease husky config #4737
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
Conversation
Fixes jquerygh-4735 Signed-off-by: Beatriz Rezener <beatrizrezener@gmail.com>
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.
Thanks for the PR! I added one comment.
package.json
Outdated
@@ -77,7 +77,8 @@ | |||
"test:no-deprecated": "grunt test:prepare && grunt custom:-deprecated && grunt karma:main", | |||
"test:slim": "grunt test:prepare && grunt custom:slim && grunt karma:main", | |||
"test": "npm run test:slim && npm run test:no-deprecated && grunt && grunt test:slow && grunt karma:main && grunt karma:esmodules && grunt karma:amd", | |||
"jenkins": "npm run test:browserless" | |||
"jenkins": "npm run test:browserless", | |||
"commitmsg": "commitplease .git/COMMIT_EDITMSG" |
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.
I think I'd prefer not going through npm scripts for some things and the husky.hooks
field below for others. Moving the command should not be necessary, just fixing the command, I think.
Whatever you try, please verify locally that the check properly fires.
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.
Sorry, I've tested and in fact we just need change the hook command, there is no why change to npm script. Thank you!
Fixes jquerygh-4735 Signed-off-by: Beatriz Rezener <beatrizrezener@gmail.com>
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.
Thank you!
Summary
Fixes gh-4735
As defined in commitplease README:
Changed hook
commit-msg
tocommitplease .git/COMMIT_EDITMSG
Checklist
Signed-off-by: Beatriz Rezener beatrizrezener@gmail.com