diff options
Diffstat (limited to 'tools/check-cla-signers')
-rwxr-xr-x | tools/check-cla-signers | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/check-cla-signers b/tools/check-cla-signers new file mode 100755 index 00000000..670158af --- /dev/null +++ b/tools/check-cla-signers @@ -0,0 +1,14 @@ +#!/usr/bin/env bash + +set -eu +set -o pipefail + +CLA_SIGNERS_FILE="tools/.github-cla-signers" + +sort -f "${CLA_SIGNERS_FILE}" -o "${CLA_SIGNERS_FILE}" + +if [[ -n "$(git status --porcelain -- ${CLA_SIGNERS_FILE})" ]]; then + echo "Please make sure that ${CLA_SIGNERS_FILE} is in alphabetical order." + git --no-pager diff "${CLA_SIGNERS_FILE}" + exit 1 +fi |