]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
github: adjust footer detection for Tested-by
authorMarc Poulhiès <dkm@kataplop.net>
Mon, 9 Sep 2024 19:46:57 +0000 (21:46 +0200)
committerMarc Poulhiès <dkm@kataplop.net>
Wed, 18 Sep 2024 09:03:49 +0000 (09:03 +0000)
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 <dkm@kataplop.net>
.github/workflows/commit-format.yml

index 9e89b92e7d544c044ea0926f03d4d1a721df2bc0..62914c119d76c767cf74665aa410174c000066d6 100644 (file)
@@ -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