From 0e0cd3b25683430337f040752124f588cbf4f929 Mon Sep 17 00:00:00 2001 From: Dongyang Li Date: Fri, 10 Nov 2023 17:01:37 +0800 Subject: [PATCH] [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. --- .github/workflows/pr-approve-status.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-approve-status.yml b/.github/workflows/pr-approve-status.yml index cda6abc8f1c15b..ccb418ebb72e9d 100644 --- a/.github/workflows/pr-approve-status.yml +++ b/.github/workflows/pr-approve-status.yml @@ -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