diff options
author | Jonas Ã…dahl <jadahl@gmail.com> | 2019-04-02 10:47:06 +0200 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2019-04-02 11:42:44 +0000 |
commit | 72aeeb8c378836f7eb6132bafe83354eb6a8963a (patch) | |
tree | 377fbf79e56e6f3bcba40d1c98fd39bc460c18fc | |
parent | 7b3dee2d9706753bc1f8bf13ada66ab51df45b06 (diff) | |
download | mutter-72aeeb8c378836f7eb6132bafe83354eb6a8963a.tar.gz |
ci: Blacklist .c and .h in the commit message subject prefix
`boxes.c: Do that` should be just `boxes: Do that`.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/519
-rwxr-xr-x | .gitlab-ci/check-commit-log.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.gitlab-ci/check-commit-log.sh b/.gitlab-ci/check-commit-log.sh index b5e7bae08..ae696eb8b 100755 --- a/.gitlab-ci/check-commit-log.sh +++ b/.gitlab-ci/check-commit-log.sh @@ -32,6 +32,11 @@ function commit_message_subject_is_compliant() { return 1 fi + if echo "$commit_message_subject" | grep -qe "\.[ch]:"; then + echo " - message subject prefix should not include .c, .h, etc." + return 1 + fi + return 0 } |