Skip to content

Commit

Permalink
feat(git): Add commitizen commit lint for Conventional Commits
Browse files Browse the repository at this point in the history
Run `make hooks` to update
  • Loading branch information
alexpovel committed Jul 18, 2022
1 parent f9bb569 commit a8c5937
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
repos:
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.28.0
hooks:
- id: commitizen
- repo: local
hooks:
- id: check-import-sorting
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ image:

# Hooks need to be added here manually if other 'types' are later added:
hooks:
@pre-commit install --hook-type pre-push --hook-type pre-commit
@pre-commit install --hook-type pre-push --hook-type pre-commit --hook-type commit-msg

bump:
@${RUN} bumpversion $(v) || \
Expand Down

0 comments on commit a8c5937

Please sign in to comment.