ci: Update common files from meta-phosh

This updates to commit f3c92e90dcc0d65322888217429b75dd101bd0d3
This commit is contained in:
Guido Günther
2024-06-12 16:24:33 +02:00
parent c3b4877dfe
commit e9743f3daa
4 changed files with 126 additions and 33 deletions
+20
View File
@@ -0,0 +1,20 @@
patterns:
deny:
- regex: '^$CI_MERGE_REQUEST_PROJECT_URL/(-/)?merge_requests/$CI_MERGE_REQUEST_IID$'
message: Commit message must not contain a link to its own merge request
- regex: '^[^:]+: [a-z]'
message: "Commit description in commit message subject should be properly Capitalized. E.g. 'monitor: Avoid crash on unplug'"
where: subject
- regex: '^\S*\.(c|h|ui):'
message: Commit message subject prefix should not include .c, .h etc.
where: subject
- regex: '([^.]\.|[:,;])\s*$'
message: Commit message subject should not end with punctuation
where: subject
- regex: '^[A-Z]\S*:'
message: "Identifier in commit message subject should start lowercase 'monitor: Avoid crash on unplug'"
where: subject
require:
- regex: '^[a-z0-9,\.\+\-/#=_]+:'
message: "Commit message should start with a lowercase identifier 'monitor: Avoid crash on unplug'"
where: subject