From e551e006b48e4782d0eea665a26400a578252591 Mon Sep 17 00:00:00 2001 From: Qiu Jian Date: Wed, 13 Nov 2019 01:53:37 +0800 Subject: [PATCH] fix: list all PRs without pagination --- scripts/approve.sh | 4 ---- scripts/approve_all.sh | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) 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:]]*$//')