ansible-ceph/tests/scripts/workflows/signed-off.sh
2026-04-06 07:08:17 +03:00

9 lines
327 B
Bash
Executable File

#!/bin/bash
set -x
if [[ "$(git log --oneline --no-merges origin/"${GITHUB_BASE_REF}"..HEAD | wc -l)" -ne "$(git log --no-merges origin/"${GITHUB_BASE_REF}"..HEAD | grep -c Signed-off-by)" ]]; then
echo "One or more commits is/are missing a Signed-off-by. Add it with 'git commit -s'."
exit 1
else
echo "Sign-off ok!"
fi