CI: Require RELENG changes in commit messages 13/70513/1
authorAndrew Grimberg <agrimberg@linuxfoundation.org>
Wed, 17 Aug 2022 17:36:13 +0000 (10:36 -0700)
committerAndrew Grimberg <agrimberg@linuxfoundation.org>
Wed, 17 Aug 2022 17:36:13 +0000 (10:36 -0700)
To make sure that JSD issues are not being referenced since that is not
public data, we will now start enforcing a requirement that commits have
a RELENG issue associated with them.

Issue: RELENG-4375
Change-Id: Ia7800de3097e30670d83b3fdcce0191144cea3a7
Signed-off-by: Andrew Grimberg <agrimberg@linuxfoundation.org>
.gitlint

index db97d76..0f81b03 100644 (file)
--- a/.gitlint
+++ b/.gitlint
@@ -94,3 +94,7 @@ contrib=contrib-title-conventional-commits,contrib-body-requires-signed-off-by
 # to the following (fairly standard) topics and require them to be Mixed Case
 [contrib-title-conventional-commits]
 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+(.*)