Merge pull request #3626 from swordqiu/hotfix/qj-approve-scripts-improvements

fix: list all PRs without pagination
This commit is contained in:
yunion-ci-robot
2019-11-13 17:50:20 +08:00
committed by GitHub
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:]]*$//')