-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Build: Install pre-commit githook on make run
#504
Conversation
@@ -44,7 +44,7 @@ export NODE_PATH := server:shared:$(THIS_DIR) | |||
install: node_modules | |||
|
|||
# Simply running `make run` will spawn the Node.js server instance. | |||
run: install build | |||
run: githooks-commit install build |
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 this should just be githooks
. We have both pre-commit and pre-push githooks, and githooks
should install both of them.
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.
Given how slow our test suite is, I opted for just the pre-commit. I suppose we could require the pre-push
as well —maybe it'll force us to improve the tests…
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.
ok, fair enough... then let's run with this.
👍 |
The rationale for this is that we'd like more exposure for the GPLv2 contribution notice. Installing them on `make run` seems like a good way to do this. The way that `bin/pre-commit` is set up now, this will also force the running of i18nlint and eslint checks. Which is a Good Thing in any case. Of course, these checks can be bypassed using `git commit --no-verify`
d0abe88
to
5bafcd4
Compare
Build: Install pre-commit githook on `make run`
The rationale for this is that we'd like more exposure for the GPLv2 contribution notice. Installing them on
make run
seems like a good way to do this.The way that
bin/pre-commit
is set up now, this will also force the running of i18nlint and eslint checks. Which is a Good Thing in any case.Of course, these checks can be bypassed using
git commit --no-verify
To test:
rm .git/hooks/pre-commit
make run
, check that the.git/hooks/pre-commit
symlink is reinstated/cc @rralian