fix: approve_all fail to pull all cherry-pick PRs

This commit is contained in:
Qiu Jian
2020-02-27 22:27:47 +08:00
parent dcf3709b42
commit bb8107c129

View File

@@ -26,7 +26,7 @@ done
PRNS=("$PRN")
for INDEX in $(python -m json.tool $pulldata | grep "\"title\":" | cut -d '"' -f 4 | grep -nr "Automated cherry pick of #${PRN}:" | awk 'BEGIN{FS=":"}{print $2}')
for INDEX in $(python -m json.tool $pulldata | grep "\"title\":" | cut -d '"' -f 4 | grep -n "Automated cherry pick of #${PRN}:" | awk 'BEGIN{FS=":"}{print $1}')
do
INDEX=$((INDEX-1))
PRNS+=("${PR_NUMBERS[$INDEX]}")