summaryrefslogtreecommitdiff
path: root/.gitlab-ci/check-commit-log.sh
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci/check-commit-log.sh')
-rwxr-xr-x.gitlab-ci/check-commit-log.sh5
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
}