Skip to content

Commit f077270

Browse files
committed
refactor: attempt to exclude squash commits for commitizen
1 parent 219baaf commit f077270

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ repos:
66
- id: commitizen
77
stages: [commit-msg]
88
- id: commitizen-branch
9+
args: ["--", "--check", "--", "--message", "$(git log -1 --pretty=%B)"]
10+
exclude: '^fixup!|^squash!'
911
stages: [pre-push]
1012
- repo: https://github.com/pre-commit/pre-commit-hooks
1113
rev: v6.0.0

0 commit comments

Comments
 (0)