1
0
Fork 0

ci: Extend "closes" rule

Gitlab also recognizes variants like "close #123" or "Closed #123".

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4017>
This commit is contained in:
Florian Müllner 2024-09-10 16:12:23 +02:00
parent a6207cd1d8
commit 90d36b8821

View file

@ -17,5 +17,5 @@ patterns:
- regex: '^\S*\.[ch]:' - regex: '^\S*\.[ch]:'
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: '^Closes:?\s*#[0-9]+' - regex: '^[Cc]lose[sd]?:?\s*#[0-9]+'
message: Closes instructions must be a full link message: Closes instructions must be a full link