From 175175fac850019d3224bb4734886fa414aefe73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Fri, 26 Feb 2021 14:46:22 +0100 Subject: [PATCH] ci: Add commit rule to not end subject with punctuation I recently forgot to fill in the subject after the prefix. Add a commit rule for catching this and other cases where subject lines end in punctuation (except ...) Part-of: --- .gitlab-ci/commit-rules.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci/commit-rules.yml b/.gitlab-ci/commit-rules.yml index 9770f4515..5828f8ad5 100644 --- a/.gitlab-ci/commit-rules.yml +++ b/.gitlab-ci/commit-rules.yml @@ -11,3 +11,6 @@ patterns: - regex: '^\S*\.(js|c|h):' 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