From e2f9ebe87e0cd76f28a47a71e6e73b01282c1f30 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Thu, 19 Nov 2020 18:37:01 +0100 Subject: [PATCH] .builds: add check for missing sign-offs As suggested by Chris Waldon, this will catch pushes to master and also during automatic testing of patches sent to the mailing list. Signed-off-by: Elias Naur --- .builds/linux.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.builds/linux.yml b/.builds/linux.yml index 8951b8fc..cc45d7d8 100644 --- a/.builds/linux.yml +++ b/.builds/linux.yml @@ -79,3 +79,13 @@ tasks: - check_gofmt: | cd gio test -z "$(gofmt -s -l .)" + - check_sign_off: | + set +x -e + cd gio + for hash in $(git log -n 20 --format="%H"); do + message=$(git log -1 --format=%B $hash) + if [[ ! "$message" =~ "Signed-off-by: " ]]; then + echo "unsigned commit $hash" + exit 1 + fi + done