lint-commits: forbid localhost email, too

This commit is contained in:
Đoàn Trần Công Danh 2023-02-02 19:13:18 +07:00
parent 52671653e7
commit ce8e8797bc
1 changed files with 4 additions and 0 deletions

View File

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