diff options
author | Marc Poulhiès <dkm@kataplop.net> | 2024-09-09 21:46:57 +0200 |
---|---|---|
committer | Marc Poulhiès <dkm@kataplop.net> | 2024-09-18 09:03:49 +0000 |
commit | ebbc172442606d17506f0590b482e74307400da7 (patch) | |
tree | e55bad3cd48e8c266fd427a23ae90e48ca402773 | |
parent | 483ee3ae4b8708d8fbab90cbd3817fb540a4a5f4 (diff) | |
download | gcc-ebbc172442606d17506f0590b482e74307400da7.zip gcc-ebbc172442606d17506f0590b482e74307400da7.tar.gz gcc-ebbc172442606d17506f0590b482e74307400da7.tar.bz2 |
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 <dkm@kataplop.net>
-rw-r--r-- | .github/workflows/commit-format.yml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/.github/workflows/commit-format.yml b/.github/workflows/commit-format.yml index 9e89b92..62914c1 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 |