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 }