| 1 | patterns: |
| 2 | deny: |
| 3 | - regex: '^$CI_MERGE_REQUEST_PROJECT_URL/(-/)?merge_requests/$CI_MERGE_REQUEST_IID$' |
| 4 | message: Commit message must not contain a link to its own merge request |
| 5 | - regex: '^[^:]+: [a-z]' |
| 6 | message: "Commit description in commit message subject should be properly Capitalized. E.g. 'monitor: Avoid crash on unplug'" |
| 7 | where: subject |
| 8 | - regex: '^\S*\.(c|h|ui):' |
| 9 | message: Commit message subject prefix should not include .c, .h etc. |
| 10 | where: subject |
| 11 | - regex: '([^.]\.|[:,;])\s*$' |
| 12 | message: Commit message subject should not end with punctuation |
| 13 | where: subject |
| 14 | - regex: '^[A-Z]\S*:' |
| 15 | message: "Identifier in commit message subject should start lowercase 'monitor: Avoid crash on unplug'" |
| 16 | where: subject |
| 17 | require: |
| 18 | - regex: '^[a-z0-9,\.\+\-/#=_]+:' |
| 19 | message: "Commit message should start with a lowercase identifier 'monitor: Avoid crash on unplug'" |
| 20 | where: subject |