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) {