This replaces GitCommitBear with GitLint which does similar
linting for git commit messages but using pre-commit hooks.
Signed-off-by: Thanh Ha <zxiiro@gmail.com>
Change-Id: I1622148cc36f072c7c412e88c1945b518b816793
**.sw?,
**.orig
-[all.GitCommit]
-bears = GitCommitBear
-ignore_length_regex = Signed-off-by,
- Also-by,
- Co-authored-by,
- http://,
- https://
-
[all.Groovy]
bears = SpaceConsistencyBear
files = **.groovy
hooks:
- id: prettier
+ - repo: https://github.com/jorisroovers/gitlint
+ rev: v0.12.0
+ hooks:
+ - id: gitlint
+
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 1.11.2
hooks:
pre-commit
commands =
pre-commit run --all-files
+ pre-commit run gitlint --hook-stage commit-msg --commit-msg-filename .git/COMMIT_EDITMSG
#########
# Tools #