1
0
Fork 0

ci/check-commit-log: Check capitalization

To avoid commit messages such as 'window: don't capitalize title', and
instead enforce 'window: Capitalize title'.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1549>
This commit is contained in:
Jonas Ådahl 2020-11-04 17:51:04 +01:00
parent e7b126eb59
commit 369e2ac9b5

View file

@ -42,6 +42,11 @@ function commit_message_subject_is_compliant() {
return 1
fi
if echo "$commit_message_subject" | sed -e 's/^[^:]\+: //' | grep -qe '^[[:lower:]]'; then
echo " - message subject should be properly Capitalized. E.g. 'window: Marginalize extradicity'"
return 1
fi
if echo "$commit_message_subject" | grep -qe "\.[ch]:"; then
echo " - message subject prefix should not include .c, .h, etc."
return 1