repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

pi/agent/skills/github/github-cli/references/failed-run.md

Raw

Failed-run helper

Reports the latest or selected failed GitHub Actions run as JSON.

node 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.

Markdown source
File outline
# Failed-run helper

Reports the latest or selected failed GitHub Actions run as JSON.

```text
node 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`.