Skip to content

Commit

Permalink
gitlint: Allow trivial changes to be without refernce (SOC-9559)
Browse files Browse the repository at this point in the history
The author of a commit should make a conscious decision to either add a
reference or not. Adding trivial instead of bsc or SOC enables this.
This change prevents that adding a refernce is forgotten as the
syntax requires to think about it.

trivial -> simple unplanned changes
noref -> more complex unplanned changes
typo -> typo fixes only

See
SUSE-Cloud#3509 (comment)
for more details.
  • Loading branch information
Rick Salevsky committed Jul 2, 2019
1 parent 0089421 commit da8ce36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/jenkins/gitlint.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ line-length=80
words=wip,WIP

[title-match-regex]
regex=^(?!SOC).*\(((bsc#|SOC-)[0-9]+(,\s)?)+\)$
regex=^(?!SOC).*\((((bsc#|SOC-)[0-9]+(,\s)?)+|trivial|typo|noref)\)$

[body-max-line-length]
line-length=80
Expand Down

0 comments on commit da8ce36

Please sign in to comment.