From 11360d0216c724040a95c0a4f9b7662e422bafb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Tue, 26 Oct 2021 20:32:34 +0200 Subject: [PATCH] common/lint-commits: catch non-conventional subject --- common/scripts/lint-commits | 1 + 1 file changed, 1 insertion(+) diff --git a/common/scripts/lint-commits b/common/scripts/lint-commits index 785bf0ef1d0d..65f584f5f84e 100755 --- a/common/scripts/lint-commits +++ b/common/scripts/lint-commits @@ -38,6 +38,7 @@ do (NF > 2) && (length > 80) { print C ": long line: " $0; exit 1 } !subject { if (length > 50) { print C ": subject is a bit long" } + if (!($0 ~ ":" || $0 ~ "^Take over maintainership " || $0 ~ "^Orphan ")) { print C ": subject does not follow CONTRIBUTING.md guildelines" } # Below check is too noisy? # if (!($0 ~ "^New package:" || $0 ~ ".*: update to")) { # print C ": not new package/update/removal?"