You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gh pr checks --json requires a comma-separated field list (e.g. --json name,bucket,state,link). With no fields, gh emits help text on stderr and an empty stdout, so the subsequent jq empty validation fails.
Additional issues in the same script:
The repo is hardcoded inside the script (private monorepo path stripped). The patrol SOP explicitly says to pass --repo so the script can also handle the second mono-adjacent repo we own. The script does not accept a --repo flag.
gh api '/repos/.../actions/runs?...' --paginate returns a stream of JSON objects (one per page), which is not a single JSON document. jq empty happens to accept it, but downstream consumers that expect a single object/array will break once a PR exceeds one page.
Suggested fix:
Pass an explicit --json field list (e.g. --json name,bucket,state,link,workflow,description).
Add --repo arg, default to the original repo if omitted, forward to both gh pr and gh api calls.
Either drop --paginate or pipe through --jq '[inputs.workflow_runs[]]' style aggregation so the saved file is a single JSON array.
Patrol manually launched the CI fix agents this cycle as a workaround.
Activity