Skip to content

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

Merged
merged 2 commits into from
Jul 20, 2020

Conversation

beatrizrezener
Copy link
Contributor

@beatrizrezener beatrizrezener commented Jun 24, 2020

Summary

Fixes gh-4735

As defined in commitplease README:

Changed hook commit-msg to commitplease .git/COMMIT_EDITMSG

Checklist

Signed-off-by: Beatriz Rezener beatrizrezener@gmail.com

Sorry, something went wrong.

Fixes jquerygh-4735

Signed-off-by: Beatriz Rezener <beatrizrezener@gmail.com>
Copy link
Member

@mgol mgol left a 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"
Copy link
Member

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.

Copy link
Contributor Author

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>
Copy link
Member

@mgol mgol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@mgol mgol changed the title Build: Fix commitplease husk config Build: Fix commitplease husky config Jun 24, 2020
@mgol mgol added Build and removed Needs review labels Jul 20, 2020
@mgol mgol added this to the 3.6.0 milestone Jul 20, 2020
@mgol mgol merged commit 3a1b338 into jquery:master Jul 20, 2020
mgol pushed a commit that referenced this pull request Jul 20, 2020
Fixes gh-4735
Closes gh-4737

(cherry picked from commit 3a1b338)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

The commitplease hook is not working
2 participants