ci: Add commit rule to not end subject with punctuation

I recently forgot to fill in the subject after the prefix. Add a
commit rule for catching this and other cases where subject lines
end in punctuation (except ...)

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1722>
This commit is contained in:
Florian Müllner 2021-02-26 14:46:22 +01:00
parent 49b7973177
commit 175175fac8

View File

@ -11,3 +11,6 @@ patterns:
- regex: '^\S*\.(js|c|h):' - regex: '^\S*\.(js|c|h):'
message: Commit message subject prefix should not include .c, .h etc. message: Commit message subject prefix should not include .c, .h etc.
where: subject where: subject
- regex: '([^.]\.|[:,;])\s*$'
message: Commit message subject should not end with punctuation
where: subject