From a4cf9f956e0da345152cfbac89e92c3732e2f800 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Thu, 17 Dec 2020 14:18:14 +0100 Subject: [PATCH] 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: --- .gitlab-ci/commitrules.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitlab-ci/commitrules.yml b/.gitlab-ci/commitrules.yml index ef7d0805..a3913a98 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