Worktrunk is a CLI for Git worktree management, designed for parallel AI agent workflows
fix(ci): replace `gh run watch` with poll loop in workflow prompts (#1329)
worktrunk-botb2a989e103a6
diff --git a/.github/workflows/claude-ci-fix.yaml b/.github/workflows/claude-ci-fix.yamlindex 84856a8a5..6e053da30 100644--- a/.github/workflows/claude-ci-fix.yaml+++ b/.github/workflows/claude-ci-fix.yaml@@ -118,7 +118,7 @@ jobs:8. **Iterate until CI passes**:- After pushing, monitor CI with `gh run list --branch fix/ci-${{ github.event.workflow_run.id }}`- - Wait for CI to complete with `gh run watch`+ - Poll CI with `gh pr checks <number>` every 60 seconds until all checks complete- If CI fails, diagnose with `gh run view <run-id> --log-failed`- Fix issues, commit, push, repeat- Don't return until CI passes or you've exhausted reasonable fixesdiff --git a/.github/workflows/claude-nightly-cleaner.yaml b/.github/workflows/claude-nightly-cleaner.yamlindex 26b103aaa..e41e47183 100644--- a/.github/workflows/claude-nightly-cleaner.yaml+++ b/.github/workflows/claude-nightly-cleaner.yaml@@ -70,7 +70,7 @@ jobs:4. Push the result: `git push`5. Comment on the PR with a brief summary of what was resolved (e.g., `gh pr comment <number> --body "..."`).6. If the conflicts are too complex to resolve confidently, abort with `git merge --abort` and comment on the PR explaining that manual resolution is needed.- 7. After pushing, wait for CI with `gh pr checks <number> --watch`. If CI fails, investigate and fix.+ 7. After pushing, poll CI with `gh pr checks <number>` every 60 seconds until all checks complete. If CI fails, investigate and fix.Run subagents in parallel for independent PRs. Each subagent must work in an isolated directory to avoid checkout conflicts (e.g., `git worktree add /tmp/pr-<number> <branch>` or `git clone . /tmp/pr-<number>`). After all subagents complete, clean up temp directories and switch back to main before proceeding:@@ -157,7 +157,7 @@ jobs:- Run tests to verify: use the test commands from CLAUDE.md- Commit and push- Create a PR referencing the issue(s)- - Monitor CI with `gh run watch`+ - Poll CI with `gh pr checks <number>` every 60 seconds until all checks complete## Step 7: Summary