.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 <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2020-11-19 18:37:01 +01:00
parent 8886f9de56
commit e2f9ebe87e
+10
View File
@@ -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