diff --git a/scripts/approve.sh b/scripts/approve.sh index 62f59da86d..0ca318f3bd 100755 --- a/scripts/approve.sh +++ b/scripts/approve.sh @@ -57,10 +57,6 @@ function label() { local MSG=$2 local LABEL=$3 - if check_label $PRN $LABEL > /dev/null; then - echo "Label $LABEL success!" - return 0 - fi for try in $(seq 3) do echo "Send $MSG ..." diff --git a/scripts/approve_all.sh b/scripts/approve_all.sh index 33477bc819..97fcc95029 100755 --- a/scripts/approve_all.sh +++ b/scripts/approve_all.sh @@ -16,7 +16,7 @@ function cleanup { } trap cleanup EXIT -hub api repos/{owner}/{repo}/pulls > $pulldata +hub api "repos/{owner}/{repo}/pulls?per_page=1000" > $pulldata PR_NUMBERS=() for l in $(python -m json.tool $pulldata | grep "\"number\":" | cut -d ':' -f 2 | cut -d "," -f 1 | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//')