build: add gitlint commit message linter

Implement commit message check workflow using gitlint

Fixes: #5840

Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com>
This commit is contained in:
Ruslan Mstoi
2023-11-09 18:31:17 +02:00
committed by Rob Bradford
parent 5f3ff3c44a
commit ea7999e064
3 changed files with 116 additions and 0 deletions

15
.gitlint Normal file
View File

@@ -0,0 +1,15 @@
[general]
extra-path=scripts/gitlint/rules.py
regex-style-search=true
[ignore-by-author-name]
regex=dependabot
ignore=all
# default 72
[title-max-length]
line-length=50
# default 80
[body-max-line-length]
line-length=72