https://gcc.gnu.org/g:ebbc172442606d17506f0590b482e74307400da7

commit ebbc172442606d17506f0590b482e74307400da7
Author: Marc Poulhiès <d...@kataplop.net>
Date:   Mon Sep 9 21:46:57 2024 +0200

    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 <d...@kataplop.net>

Diff:
---
 .github/workflows/commit-format.yml | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

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

Reply via email to