[polari/gnome-3-38] ci: Add some more commit message rules
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari/gnome-3-38] ci: Add some more commit message rules
- Date: Sat, 16 Jan 2021 02:02:05 +0000 (UTC)
commit 6b0c3fa855e8651dd9bb31a9afa5de5f5a15e02a
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Dec 18 12:31:31 2020 +0100
ci: Add some more commit message rules
Now that we have the ability to easily define custom rules, add some
more to enforce the existing commit message style.
https://gitlab.gnome.org/GNOME/polari/-/merge_requests/171
.gitlab-ci/commitrules.yml | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/.gitlab-ci/commitrules.yml b/.gitlab-ci/commitrules.yml
index a586c38c..5806ab80 100644
--- a/.gitlab-ci/commitrules.yml
+++ b/.gitlab-ci/commitrules.yml
@@ -2,3 +2,10 @@ patterns:
require:
- regex:
($CI_MERGE_REQUEST_PROJECT_URL/(-/)?(issues|merge_requests)/[0-9]+|https://bugzilla.gnome.org/show_bug.cgi?id=[0-9]+)
message: Commit message must contain a link to an issue or merge request
+ deny:
+ - regex: '^[^:]+: [a-z]'
+ message: "Commit message subject should be properly Capitalized. E.g. 'chatView: Marginalize
extradicity'"
+ where: subject
+ - regex: '^\S*\.js:'
+ message: Commit message subject prefix should not include .js
+ where: subject
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]