[gnome-shell-extensions] ci: Add some more commit message rules
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] ci: Add some more commit message rules
- Date: Fri, 18 Dec 2020 18:52:49 +0000 (UTC)
commit a4cf9f956e0da345152cfbac89e92c3732e2f800
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Dec 17 14:18:14 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.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell-extensions/-/merge_requests/149>
.gitlab-ci/commitrules.yml | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/.gitlab-ci/commitrules.yml b/.gitlab-ci/commitrules.yml
index ef7d080..a3913a9 100644
--- a/.gitlab-ci/commitrules.yml
+++ b/.gitlab-ci/commitrules.yml
@@ -2,3 +2,12 @@ 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: '^extensions/'
+ message: Commit message subject should not be prefixed with 'extensions/', use the extension name
instead
+ where: subject
+ - regex: '^[^:]+: [a-z]'
+ message: "Commit message subject should be properly Capitalized. E.g. 'window: 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]