[fix](action) Update pr-approve-status.yml (#26577)

According to https://docs.github.com/en/rest/pulls/reviews?apiVersion=2022-11-28#list-reviews-for-a-pull-request,
the number of results per page default is 30 (max 100).
review of  APPROVED after 30 will not be listed,
change to 100 to fix it.
This commit is contained in:
Dongyang Li
2023-11-10 17:01:37 +08:00
committed by GitHub
parent 2712bb9f60
commit 0e0cd3b256

View File

@ -33,7 +33,7 @@ jobs:
echo "PR number is not set"
exit 1
fi
response=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }} " "https://api.github.com/repos/apache/doris/pulls/${pr_num}/reviews")
response=$(curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }} " "https://api.github.com/repos/apache/doris/pulls/${pr_num}/reviews?per_page=100")
# shellcheck disable=SC2207
reviewers=($(echo $response | jq -r '.[] | .user.login'))
# shellcheck disable=SC2207