[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:
2
.github/workflows/pr-approve-status.yml
vendored
2
.github/workflows/pr-approve-status.yml
vendored
@ -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
|
||||
|
||||
Reference in New Issue
Block a user