From ed154605267035596c76ed1fac5e451d5d397480 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 9 Sep 2024 11:07:08 +1000 Subject: [PATCH] ci: Deny a plain "Closes: #123" message in the commit message We need the full link so let's warn contributors about this instead of having reviewers pointing this out. Part-of: --- .gitlab-ci/commit-rules.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitlab-ci/commit-rules.yml b/.gitlab-ci/commit-rules.yml index 1ae43374c..9b43890f4 100644 --- a/.gitlab-ci/commit-rules.yml +++ b/.gitlab-ci/commit-rules.yml @@ -17,3 +17,5 @@ patterns: - regex: '^\S*\.[ch]:' message: Commit message subject prefix should not include .c, .h, etc. where: subject + - regex: '^Closes:?\s*#[0-9]+' + message: Closes instructions must be a full link