The result contains run metadata, repository identity, and failed jobs with ANSI-cleaned, deduplicated error excerpts.
Job logs are selected by database ID; unavailable per-job logs produce no excerpts rather than misattributed run-level output.
# Failed-run helperReports the latest or selected failed GitHub Actions run as JSON.
```textnode scripts/gh_failed_run.mjs
node scripts/gh_failed_run.mjs --repo owner/repo --pretty
node scripts/gh_failed_run.mjs --repo owner/repo --run-id 123456 --pretty
```
The result contains run metadata, repository identity, and failed jobs with ANSI-cleaned, deduplicated error excerpts.
Job logs are selected by database ID; unavailable per-job logs produce no excerpts rather than misattributed run-level output.
Check current flags with `gh run view --help`.