mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 10:30:47 -05:00
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:
parent
e7b126eb59
commit
369e2ac9b5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user