Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

priyank-p
Copy link
Member

@priyank-p priyank-p commented Dec 28, 2017

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?
screen shot 2017-12-28 at 2 18 09 pm
screen shot 2017-12-28 at 2 10 17 pm

You have tested this PR on:

  • Windows
  • Linux/Ubuntu
  • macOS

@@ -0,0 +1,73 @@
// This script sets up the pre-push
// git hook which we will be used to lint
Copy link
Member

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

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.

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`.
@akashnimare akashnimare force-pushed the master branch 2 times, most recently from abd41fb to 94cbc78 Compare September 24, 2018 11:16
@zulipbot
Copy link
Member

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 upstream/master branch and resolve your pull request's merge conflicts accordingly.

@priyank-p
Copy link
Member Author

This thing is almost three years old :). Closing this I don't think we want this now.

@priyank-p priyank-p closed this Jul 3, 2019
@priyank-p priyank-p deleted the commit-linter branch July 3, 2019 15:21
@akashnimare
Copy link
Member

@kanishk98 and I were thinking to revisit this. We definitely want to add this tool.

@priyank-p priyank-p restored the commit-linter branch July 3, 2019 15:24
@priyank-p
Copy link
Member Author

OK, restored I don't remember anything at this point so closed it, reopening.

@priyank-p priyank-p reopened this Jul 3, 2019
Base automatically changed from master to main January 22, 2021 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants