Skip to content

Commit

Permalink
ci(pre-commit): Check existing commit messages
Browse files Browse the repository at this point in the history
Use new commitizen-branch hook to verify correctness of existing commit
messages post-commit and pre-push. This guards against cherry-picked
commits with invalid commit messages as well as empty commit messages
(e.g., created with git commit --allow-empty-message).
  • Loading branch information
Kurt-von-Laven authored and Lee-W committed Aug 22, 2022
1 parent 1f0535a commit 8cb1e22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ repos:
rev: v2.32.2 # automatically updated by Commitizen
hooks:
- id: commitizen
- id: commitizen-branch
stages:
- post-commit
- push

- repo: local
hooks:
Expand Down

0 comments on commit 8cb1e22

Please sign in to comment.