mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
.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:
@@ -79,3 +79,13 @@ tasks:
|
|||||||
- check_gofmt: |
|
- check_gofmt: |
|
||||||
cd gio
|
cd gio
|
||||||
test -z "$(gofmt -s -l .)"
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user