-
-
Notifications
You must be signed in to change notification settings - Fork 474
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
gitlint: Setup commit linter. #367
base: main
Are you sure you want to change the base?
Conversation
dd7ce81
to
f1f586d
Compare
@@ -0,0 +1,73 @@ | |||
// This script sets up the pre-push | |||
// git hook which we will be used to lint |
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.
which we will
= which will
package.json
Outdated
@@ -27,6 +27,9 @@ | |||
"pack": "electron-builder --dir", | |||
"dist": "electron-builder", | |||
"mas": "electron-builder --mac mas", | |||
"setup-gitlint-hooks": "node ./scripts/gitlint/setup-gitlint-hook", | |||
"lint-commits": "node ./scripts/gitlint --all-commits", | |||
"lint-fix": "xo --fix", |
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.
Can you remove lint-fix
because xo --fix
doesn't work all the time and may give you unexpected results.
f1f586d
to
6cb367b
Compare
a7ec3f9
to
b8b877d
Compare
0047763
to
720f42c
Compare
36a91b4
to
72eb5c2
Compare
This will setup a commit hook that will check the commit msg run `npm run lint-commits` to check all the commits. Additionaly setup git hooks by running `npm run setup-gitlint-hooks`.
35384af
to
8fa1a60
Compare
abd41fb
to
94cbc78
Compare
Heads up @priyank-p, we just merged some commits that conflict with the changes your made in this pull request! You can review this repository's recent commits to see where the conflicts occur. Please rebase your feature branch against the |
This thing is almost three years old :). Closing this I don't think we want this now. |
@kanishk98 and I were thinking to revisit this. We definitely want to add this tool. |
OK, restored I don't remember anything at this point so closed it, reopening. |
This will setup a commit hook that will check the commit msg run
npm run lint-commits
to check all the commits.What's this PR do?
Setup commit linter.
Screenshots?


You have tested this PR on: