From 574d5f3313bc632412a465e6665f5494a913c581 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Mon, 8 Dec 2025 15:17:56 -0800 Subject: [PATCH] CI: exclude signed-off-by/reviewed-by from 72 char limit Allow an author or reviewer's name and email address to exceed the 72 character limit enforced by the commitcheck target. Reviewed-by: RageLtMan Reviewed-by: Rob Norris Signed-off-by: Brian Behlendorf Closes #18030 --- scripts/commitcheck.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/commitcheck.sh b/scripts/commitcheck.sh index 1b1d09750..9ebf16a0d 100755 --- a/scripts/commitcheck.sh +++ b/scripts/commitcheck.sh @@ -7,7 +7,9 @@ REF="HEAD" test_commit_bodylength() { length="72" - body=$(git log --no-show-signature -n 1 --pretty=%b "$REF" | grep -Ev "http(s)*://" | grep -E -m 1 ".{$((length + 1))}") + body=$(git log --no-show-signature -n 1 --pretty=%b "$REF" | + grep -Evi -e "http(s)*://" -e "signed-off-by:" -e "reviewed-by:" | + grep -E -m 1 ".{$((length + 1))}") if [ -n "$body" ]; then echo "error: commit message body contains line over ${length} characters" return 1