Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions repro/fork-command/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ open_pr() {
head_sha() { gh pr view "$1" -R "$UPSTREAM" --json headRefOid --jq .headRefOid; }

# checks <sha> <name> — "conclusion" per check-run with that name, oldest first.
# filter=all, because the API returns only the newest run per name by default.
checks() {
gh api "repos/${UPSTREAM}/commits/$1/check-runs?check_name=$(jq -rn --arg n "$2" '$n|@uri')&per_page=100" \
gh api "repos/${UPSTREAM}/commits/$1/check-runs?check_name=$(jq -rn --arg n "$2" '$n|@uri')&filter=all&per_page=100" \
--jq '.check_runs | sort_by(.id) | .[] | (.conclusion // .status)'
}

Expand All @@ -76,7 +77,7 @@ wait_checks() {
if (( done_count >= count )); then return 0; fi
sleep 15
done
echo " timed out waiting for ${count} x '${name}' on ${sha:0:7}" >&2
fail "timed out waiting for ${count} x '${name}' on ${sha:0:7}"
return 1
}

Expand Down
Loading