Skip to content

Commit

Permalink
Merge pull request #57 from aj3sh/commitlint
Browse files Browse the repository at this point in the history
Added commit message check on pre-commit hook
  • Loading branch information
sugat009 authored Sep 13, 2023
2 parents 86b68ca + 511bee2 commit d0361f0
Show file tree
Hide file tree
Showing 5 changed files with 1,453 additions and 23 deletions.
3 changes: 3 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["@commitlint/config-conventional"]
}
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install commitlint --edit $1
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ Before submitting your Pull Request, please do the following steps:
1. Add tests for the new changes.
1. Update the `CHANGELOG.md` file if necessary.
1. Edit documentation (`README.md`) if you have changed something significant.
1. Commit your changes using [semantic commit message](https://seesparkbox.com/foundry/semantic_commit_messages).
Examples: `"fix: Fixed foobar bug"`, `"feat(accounts): Added foobar feature on accounts"`.

## Other help

Expand Down
Loading

0 comments on commit d0361f0

Please sign in to comment.