[#83] pre-commit: Add gitlint hook

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
pull/133/head
Evgenii Stratonikov 2023-03-02 14:08:31 +03:00 committed by Gitea
parent 0893689c6a
commit 8226d49376
2 changed files with 16 additions and 0 deletions

10
.gitlint 100644
View File

@ -0,0 +1,10 @@
[general]
fail-without-commits=true
contrib=CC1
[title-match-regex]
regex=^\[\#[0-9]+\]\s
[ignore-by-title]
regex=^Release(.*)
ignore=title-match-regex

View File

@ -22,3 +22,9 @@ repos:
rev: v1.51.2
hooks:
- id: golangci-lint
- repo: https://github.com/jorisroovers/gitlint
rev: v0.18.0
hooks:
- id: gitlint
stages: [commit-msg]