[polari] ci: Add some more commit message rules



commit 63986793d46bb13eb53b52f6164ca8d6606bbe9f
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]