mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
fix: list all PRs without pagination
This commit is contained in:
@@ -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 ..."
|
||||
|
||||
@@ -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:]]*$//')
|
||||
|
||||
Reference in New Issue
Block a user