Remove the verbose bash logging in DCO check

This commit is contained in:
Ritchie Frodomar 2024-10-16 21:10:33 -04:00
parent c4114fb215
commit e5ac222268

View file

@ -7,7 +7,6 @@ check_signoff:
stage: legal
image: cr.acidiclight.dev/docker-images/tinygit/tinygit:latest
script: |
set -x
COMMITTER_EMAIL=$(git log -1 --pretty=format:'%ae')
MAINTAINER_CHECK=$(curl -s --header "PRIVATE-TOKEN: $CI_PRIVILEGED_ACCESS_TOKEN" "https://gitlab.acidiclight.dev/api/v4/projects/$CI_PROJECT_ID/members/all" | jq --arg EMAIL "$COMMITTER_EMAIL" '.[] | select(.email == $EMAIL and .access_level >= 40)')
if [ -z "$MAINTAINER_CHECK" ]; then echo $CI_COMMIT_MESSAGE | grep "Signed-off-by: $CI_COMMIT_AUTHOR"; fi