From ccc180667f60f5966656ee98bd5b541ffb2a5033 Mon Sep 17 00:00:00 2001 From: Stewart X Addison Date: Wed, 8 Jul 2026 16:19:44 +0100 Subject: [PATCH] tools: add check for Reviewed-by: to merge.sh Signed-off-by: Stewart X Addison --- tools/actions/merge.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/actions/merge.sh b/tools/actions/merge.sh index 45947f64c2a4db..e92f45441b2217 100755 --- a/tools/actions/merge.sh +++ b/tools/actions/merge.sh @@ -56,6 +56,11 @@ git log -1 HEAD^ --pretty='format:%B' | git interpret-trailers --parse --no-divi echo "Refuse to squash and merge a PR landing in more than one commit" exit 1 } +git log -1 HEAD --pretty='format:%B' | git interpret-trailers --parse --no-divider | \ + grep -q "^Reviewed-By: " || { + echo "No Reviewed-By: lines in the commit message" + exit 1 + } commit_title=$(git log -1 --pretty='format:%s') commit_body=$(git log -1 --pretty='format:%b')