Skip to content

Commit 7b99c3c

Browse files
committed
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 <[email protected]>
1 parent 5a489e0 commit 7b99c3c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/commit-format.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,9 @@ jobs:
9696
echo -n "$f : "
9797
if awk 'BEGIN { in_footer = 0; error = 0;}
9898
{ DEFAULT = 1; }
99-
/^Signed-off-by/ { in_footer = 1; DEFAULT = 0;}
100-
/^Co-authored-by/ { in_footer = 1; DEFAULT = 0;}
101-
/^Reviewed-by/ { in_footer = 1; DEFAULT = 0;}
99+
/^(Signed-off|Co-authored|Reviewed|Tested)-by/ { in_footer = 1; DEFAULT = 0;}
102100
/^\s*$/ { DEFAULT = 0; }
103-
DEFAULT { if (in_footer == 1) { printf $0 " appears after some Signed-off-by/Co-authored-by line "; error = 1; exit (1);} }';
101+
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);} }';
104102
then
105103
echo OK
106104
else

0 commit comments

Comments
 (0)