This is an automated email from the ASF dual-hosted git repository.

eolivelli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-test-infra.git


The following commit(s) were added to refs/heads/master by this push:
     new 5dfa1d0  Fix retries when there are more than 30 check runs (#20)
5dfa1d0 is described below

commit 5dfa1d009526cdc6cd0d9fb4609e8c0c67627519
Author: Lari Hotari <[email protected]>
AuthorDate: Tue Apr 13 09:37:15 2021 +0300

    Fix retries when there are more than 30 check runs (#20)
---
 pulsarbot/entrypoint.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pulsarbot/entrypoint.sh b/pulsarbot/entrypoint.sh
index ee71fc4..6df6374 100755
--- a/pulsarbot/entrypoint.sh
+++ b/pulsarbot/entrypoint.sh
@@ -42,7 +42,7 @@ curl -s -H "Accept: 
application/vnd.github.antiope-preview+json" "https://api.gi
 HEAD_SHA=$(jq -r '.object.sha' result-headsha.txt)
 
 # get checkrun results
-curl -s -H "Accept: application/vnd.github.antiope-preview+json" 
"https://api.github.com/repos/${BOT_TARGET_REPOSITORY}/commits/${HEAD_SHA}/check-runs";
 > result-check-runs.txt
+curl -s -H "Accept: application/vnd.github.antiope-preview+json" 
"https://api.github.com/repos/${BOT_TARGET_REPOSITORY}/commits/${HEAD_SHA}/check-runs?per_page=100";
 > result-check-runs.txt
 
 # find the failures 
 for row in $(cat result-check-runs.txt | jq -r '.check_runs[] | select(.status 
== "completed" and (.conclusion == "failure" or .conclusion == "cancelled")) | 
@base64'); do

Reply via email to