Chore: Update pre-commit issue link requirement 42/73042/4
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Wed, 7 Aug 2024 16:19:45 +0000 (09:19 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Wed, 7 Aug 2024 17:16:11 +0000 (10:16 -0700)
The Release Engineering Jira project is no longer publicly accessible.
As we currently require issue links for commits to lftools, this
switches to using the GitHub issue tracker for links.

Links may also use the optional 'Fixes' message identifier to cause GH
to close an issue if it is still open.

Issue: Fixes lfit/releng-lftools#10
Change-Id: I13b7592248f0d77a576d394a5a4415209777ae87
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
.gitlint

index 0f81b03..aa389fa 100644 (file)
--- a/.gitlint
+++ b/.gitlint
@@ -97,4 +97,4 @@ types=Fix,Feat,Chore,Docs,Style,Refactor,Perf,Test,Revert,CI,Build
 
 # Require RELENG issues in commit messages
 [body-match-regex]
-regex=(.*)Issue:\s+(?<!IT)RELENG-\d+(.*)
+regex=(.*)Issue:\s+([Ff][Ii][Xx][Ee][Ss]\s+)?[a-zA-Z0-9-]+\/[a-zA-Z0-9_-]+#\d+(.*)