mirror of
https://gitlab.com/commento/commento.git
synced 2025-06-29 22:56:37 -04:00
.gitlab-ci.yml: check for dco
This commit is contained in:
12
scripts/check-dco
Normal file
12
scripts/check-dco
Normal file
@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
emails=$(git log master..HEAD --pretty=format:'%ae' | sort | uniq)
|
||||
for email in $emails; do
|
||||
printf "checking %s\n" "$email"
|
||||
if ! curl -s 'https://dco.commento.io/api/has-signed' -d "email=$email" -X POST \
|
||||
| jq '.hasSigned' \
|
||||
| grep -q true; then
|
||||
printf "%s has not signed the DCO: https://dco.commento.io\n" "$email"
|
||||
exit 1
|
||||
fi
|
||||
done
|
Reference in New Issue
Block a user