]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dco: Expect a sign-off from the committer, not the author
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 2 Jun 2025 10:11:11 +0000 (12:11 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 12 Sep 2025 08:52:44 +0000 (10:52 +0200)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
.github/workflows/dco.yml

index caf4fba3561e74498f9a84b3e97e3eac6a6097f1..050bb3e4f2ebd749795e0e67cb305d78e0550e44 100644 (file)
@@ -28,11 +28,11 @@ jobs:
           for commit in $(git rev-list HEAD ^origin/${BRANCH}); do
             echo "=== Checking commit '${commit}'"
             body="$(git show -s --format=%b ${commit})"
-            expected="$(git show -s --format='Signed-off-by: %aN <%aE>' ${commit})"
+            expected="$(git show -s --format='Signed-off-by: %cN <%cE>' ${commit})"
             if echo "${body}" | grep -qF "${expected}"; then
-              echo "Signed-off-by matches author"
+              echo "Signed-off-by matches committer"
             else
-              echo "Signed-off-by is missing or doesn't match author (should be '${expected}')"
+              echo "Signed-off-by is missing or doesn't match committer (should be '${expected}')"
               RET=1
             fi
           done