From ce8e8797bc2e22cf993d8525a39106f49ca28d97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Thu, 2 Feb 2023 19:13:18 +0700 Subject: [PATCH] lint-commits: forbid localhost email, too --- common/scripts/lint-commits | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/common/scripts/lint-commits b/common/scripts/lint-commits index f4bb47c8f9f..56f16ff194b 100755 --- a/common/scripts/lint-commits +++ b/common/scripts/lint-commits @@ -36,6 +36,10 @@ do print "::error title=Commit Lint::" C ": authored by noreply email"; ret=1; } + /^author .*(localhost|localdomain|[(]none[)])/ && !msg { + print "::error title=Commit Lint::" C ": authored by localhost email"; + ret=1; + } !msg { next } # 3: long-line-is-banned-except-footnote-like-this-for-url (NF > 2) && (length > 80) {