Files
karaoke-gen/.github
Andrew Beveridge ☄️andClaude Opus 5.5 c8461e56d0 fix(e2e): self-heal CI approval — correct pending detection, re-approve open PRs (#1121)
## Summary
This fixes the approval step from #1118, found by the live test on run
37140934446. That run reported `approved=true`, but bot PR #1119's CI
run was still `action_required`: the old check treated *any* existing
`pull_request` run as already running.

- `approve_ci` now succeeds only once a `pull_request` CI run exists
that is past `action_required`. It approves pending runs as it finds
them.
- When a self-heal PR is already open, the job now runs `approve_ci` for
that PR instead of exiting. So a stuck bot PR gets unstuck on the next
run.
- Polling is tolerant of transient `gh`/`jq` failures (from the local
CodeRabbit review). An empty branch name fails fast.

## Testing
- `actionlint` is clean for the changed lines; local CodeRabbit review:
2 findings, both fixed.
- After merge: a forced-LLM run on `main` will hit the "PR already open"
path for #1119. That approves its CI with the workflow's own token and
should let it auto-merge with no manual input.

@coderabbitai ignore

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 17:50:38 +00:00
..
2024-09-17 12:18:12 -04:00
2025-12-11 03:49:32 -05:00