PR GHA Fixer
Fix failed GitHub Actions checks.
Safety: NEVER rebases. Push optional + requires confirmation.
Steps
- •
Detect PR:
gh pr view --json number -q '.number'or ask user - •
Verify branch (if PR specified manually)
- •
Fetch failed checks:
bashgh pr checks <PR> --json name,state,bucket,link
Display as numbered list, ask "Which to fix?"
- •
Fetch logs:
bashgh run list --branch <BRANCH> --json databaseId,name,conclusion --limit 20 gh run view <RUN_ID> --log-failed
- •
Plan fixes: Identify root cause, create concise plan Ask "Ready to execute?"
- •
Execute: Apply fixes, summarize
- •
Commit: Ask first, suggest message like
fix: resolve CI failures - •
Push (optional): Ask first, then
gt ss --update-only
Common failures
- •Build: missing imports, type errors, syntax
- •Test: outdated assertions, missing fixtures, flaky tests
- •Lint: formatting, unused imports/vars
- •Infra: secrets, rate limits (can't fix - inform user)