Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
fix: prevent claude-review from polling its own CI check (#1212)
Maximilian Roosbfe37a8a6a9d
diff --git a/.claude/skills/pr-review/SKILL.md b/.claude/skills/pr-review/SKILL.mdindex 2e057a012..e56ddda27 100644--- a/.claude/skills/pr-review/SKILL.md+++ b/.claude/skills/pr-review/SKILL.md@@ -293,11 +293,17 @@ description: new text here### 5. Monitor CI-After approving, check whether CI has finished:+After approving, check whether CI has finished. Exclude the current workflow's+own check to avoid a circular wait (Claude polling itself):```bash+# $GITHUB_WORKFLOW is set in CI; when unset, no checks are excluded.gh pr view <number> --json statusCheckRollup \- --jq '.statusCheckRollup[] | {name: .name, status: .status, conclusion: .conclusion}'+ --jq '[.statusCheckRollup[]+ | select(env.GITHUB_WORKFLOW == null+ or (.workflowName == env.GITHUB_WORKFLOW | not))]+ | .[]+ | {name, status, conclusion}'```- **All checks passed** → done, no further action.diff --git a/.github/workflows/claude-review.yaml b/.github/workflows/claude-review.yamlindex 2a2108485..74b9f8570 100644--- a/.github/workflows/claude-review.yaml+++ b/.github/workflows/claude-review.yaml@@ -30,6 +30,7 @@ jobs:github.event.review.user.login != 'worktrunk-bot' &&(github.event.review.state != 'approved' || github.event.review.body))runs-on: ubuntu-24.04+ timeout-minutes: 60permissions:contents: writepull-requests: write