Merge pull request #10117 from miri64/tools/enh/pr-check-label-rename

tools/pr_check: adapt for label categorization
This commit is contained in:
Martine Lenders 2018-10-12 20:17:57 +02:00 committed by GitHub
commit a73c499b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,12 +39,12 @@ if [ -n "${SQUASH_COMMITS}" ]; then
fi fi
if [ -n "$TRAVIS_PULL_REQUEST" -o -n "$CI_PULL_NR" ]; then if [ -n "$TRAVIS_PULL_REQUEST" -o -n "$CI_PULL_NR" ]; then
if check_gh_label "NEEDS SQUASHING"; then if check_gh_label "CI: needs squashing"; then
echo -e "${CERROR}Pull request needs squashing according to its labels set on GitHub${CRESET}" echo -e "${CERROR}Pull request needs squashing according to its labels set on GitHub${CRESET}"
EXIT_CODE=1 EXIT_CODE=1
fi fi
if check_gh_label "Waiting For Other PR"; then if check_gh_label "State: waiting for other PR"; then
echo -e "${CERROR}Pull request is waiting for another pull request according to its labels set on GitHub${CRESET}" echo -e "${CERROR}Pull request is waiting for another pull request according to its labels set on GitHub${CRESET}"
EXIT_CODE=1 EXIT_CODE=1
fi fi