mirror of
https://github.com/nomadkaraoke/karaoke-gen.git
synced 2026-11-20 13:07:57 +09:00
## 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>