From: Marc Poulhiès Date: Mon, 9 Sep 2024 19:46:57 +0000 (+0200) Subject: github: adjust footer detection for Tested-by X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebbc172442606d17506f0590b482e74307400da7;p=thirdparty%2Fgcc.git github: adjust footer detection for Tested-by Add the "Tested-by" prefix to the list of already matched footer prefixes. Adjust the error message. This avoid warnings on commits using it. Signed-off-by: Marc Poulhiès --- diff --git a/.github/workflows/commit-format.yml b/.github/workflows/commit-format.yml index 9e89b92e7d54..62914c119d76 100644 --- a/.github/workflows/commit-format.yml +++ b/.github/workflows/commit-format.yml @@ -96,11 +96,9 @@ jobs: echo -n "$f : " if awk 'BEGIN { in_footer = 0; error = 0;} { DEFAULT = 1; } - /^Signed-off-by/ { in_footer = 1; DEFAULT = 0;} - /^Co-authored-by/ { in_footer = 1; DEFAULT = 0;} - /^Reviewed-by/ { in_footer = 1; DEFAULT = 0;} + /^(Signed-off|Co-authored|Reviewed|Tested)-by/ { in_footer = 1; DEFAULT = 0;} /^\s*$/ { DEFAULT = 0; } - DEFAULT { if (in_footer == 1) { printf $0 " appears after some Signed-off-by/Co-authored-by line "; error = 1; exit (1);} }'; + DEFAULT { if (in_footer == 1) { printf $0 " appears after some Signed-off-by/Co-authored-by/Tested-by/Reviewed-by line "; error = 1; exit (1);} }'; then echo OK else