fix: list all PRs without pagination

This commit is contained in:
Qiu Jian
2019-11-13 01:53:37 +08:00
parent df5940014b
commit e551e006b4
2 changed files with 1 additions and 5 deletions
-4
View File
@@ -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 ..."
+1 -1
View File
@@ -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:]]*$//')