generated from d2iq-archive/golang-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.gitlint
25 lines (20 loc) · 821 Bytes
/
.gitlint
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# `gitlint` is used to validate commit messages via `pre-commit` hook, enabled
# via `pre-commit install -t commit-msg`.
#
# The format of this file is detailed at https://jorisroovers.com/gitlint/latest/configuration/gitlint_file/.
[general]
# Validate the commit title conforms to conventional commits (https://www.conventionalcommits.org/en/v1.0.0/).
contrib=contrib-title-conventional-commits
# Do not require a body in the git commit.
ignore=body-is-missing
regex-style-search=True
[body-max-line-length]
line-length=120
[ignore-body-lines]
regex=https?://
[ignore-by-author-name]
regex=(.*)dependabot(.*)
ignore=all
[contrib-title-conventional-commits]
# Specify allowed commit types. For details see: https://www.conventionalcommits.org/
types = fix,feat,docs,style,refactor,perf,test,revert,ci,build,release