Small starter for turning failing GitHub Actions logs and review feedback into a clean rescue packet: what failed, why it likely failed, what to fix first, and what evidence to hand back to a maintainer or client.
It contains:
- Dependency-free JavaScript helpers for redacting secrets and parsing CI logs.
- Failure classification for tests, lint, type checks, builds, dependencies, missing env vars, permissions, and flaky network issues.
- Review-thread summarization for unresolved PR comments and requested changes.
- A no-dependency test suite and demo with safe sample fixtures.
npm test
npm run demosrc/ci-pr-rescue.mjs: pure CI and review-triage logic.test/ci-pr-rescue.test.mjs: regression tests for redaction, classification, and packet building.tools/demo.mjs: prints a sample rescue packet as JSON.examples/: safe GitHub Actions log and PR review fixtures.
Use this when a repo has problems such as:
- GitHub Actions failing with unclear logs.
- A PR blocked by review comments, type errors, lint failures, or missing tests.
- A client needing a concise repair plan before paying for a full fix.
- Maintainers needing a redacted handoff packet that does not leak tokens, emails, cookies, or env values.
For real client work, export the failing job log from GitHub Actions, collect unresolved review comments, and run this packet builder locally. Keep private source code and credentials out of public fixtures. The redaction helpers are conservative and designed for shareable diagnostics, not for replacing a full secret scanner.
This starter deliberately avoids paid services, GitHub API credentials, and external dependencies by default.