mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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:
parent
49b7973177
commit
175175fac8
1 changed files with 3 additions and 0 deletions
|
|
@ -11,3 +11,6 @@ patterns:
|
|||
- regex: '^\S*\.(js|c|h):'
|
||||
message: Commit message subject prefix should not include .c, .h etc.
|
||||
where: subject
|
||||
- regex: '([^.]\.|[:,;])\s*$'
|
||||
message: Commit message subject should not end with punctuation
|
||||
where: subject
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue