CI Failure Watcher已精选
Poll CI on an interval, investigate failures when checks go red, and push fixes until green.
基本信息
分类
持续集成
目标
latest CI run on this branch is green.
最大迭代次数
12
检查命令
gh run list --branch $(git branch --show-current) --limit 1
退出条件
latest run conclusion is success.
支持的智能体
Cursor, Claude Code
启动提示词
/loop 5m Start the "CI Failure Watcher" loop.
Goal: latest CI run on this branch is green.
Max iterations: 12.
Between iterations run: gh run list --branch $(git branch --show-current) --limit 1
Exit when: latest run conclusion is success.
Step 1: Check CI status. If failed, read logs, fix root cause, verify locally, and push if needed.步骤
- 1
Check CI status
Check the latest CI run for the current branch using gh CLI.
gh run list --branch $(git branch --show-current) --limit 1 - 2
Investigate failure
If CI failed, read logs, identify the root cause, and apply the smallest fix.
- 3
Verify locally
Run the failing CI step locally before pushing again.
更多 持续集成 相关内容
Fix CI Until Green
Fetch the latest failed CI run, reproduce the failure locally, fix it, and repeat until checks pass.
PR Babysitter
Every 15 minutes, inspect open PRs with a watch label: nudge reviewers, fix CI, rebase if behind main.
PR Watch Loop
Poll open PRs labeled codex-watch every 15 minutes, review activity, and flag regressions or stale threads.
Ship PR Until Green
Implement on a branch, run tests, push, open a PR, wait for CI, and loop until checks pass and the PR is ready to merge.
评论