summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
authorFlorian Müllner <fmuellner@gnome.org>2021-02-26 14:46:22 +0100
committerFlorian Müllner <fmuellner@gnome.org>2021-02-26 14:59:07 +0100
commit175175fac850019d3224bb4734886fa414aefe73 (patch)
tree825e65d3efa5f7601f654d73afa80b5a9aa45fd6 /.gitlab-ci
parent49b7973177d315cbf073a48de24df5b0ba3af5be (diff)
downloadgnome-shell-175175fac850019d3224bb4734886fa414aefe73.tar.gz
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: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1722>
Diffstat (limited to '.gitlab-ci')
-rw-r--r--.gitlab-ci/commit-rules.yml3
1 files changed, 3 insertions, 0 deletions
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