From 485c50033cbe40552432783781b794688963da30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Wed, 29 Oct 2025 10:56:57 +0100 Subject: [PATCH] utils: checkstyle.py: Accept `Closes` commit trailer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `Closes: ` is recognized by gitlab[0] and closes the referenced issue automatically when a commit is made to the project's default branch. Now that issues are hosted on gitlab, it will be the preferred way to reference the fixed issue from a commit, so replace the previously used `Bug` with it in the checkstlye.py script. [0]: https://docs.gitlab.com/user/project/issues/managing_issues/#default-closing-pattern Signed-off-by: Barnabás Pőcze Reviewed-by: Kieran Bingham Reviewed-by: Stefan Klug --- utils/checkstyle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/checkstyle.py b/utils/checkstyle.py index f6229bbd..fa1355c1 100755 --- a/utils/checkstyle.py +++ b/utils/checkstyle.py @@ -541,7 +541,7 @@ class TrailersChecker(CommitChecker): known_trailers = { 'Acked-by': email_regex, - 'Bug': link_regex, + 'Closes': link_regex, 'Co-developed-by': email_regex, 'Fixes': commit_regex, 'Link': link_regex,