You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: Babysit a PR - monitor, auto-fix review comments, ensure CI is green, handle auto-merge, and merge when ready
4
4
---
5
5
6
6
# Babysit PR
7
7
8
-
Continuously monitor a pull request, read AI review bot comments (CodeRabbit, Sourcery, Gemini), fix suggested issues, resolve merge conflicts, and merge when ready. Reports total effort at completion.
8
+
Continuously monitor a pull request with intelligent automation:
9
+
-**Auto-address code review comments** from AI bots (CodeRabbit, Sourcery, Gemini) and human reviewers
10
+
-**Auto-fix CI failures** by analyzing logs, fixing issues, and retrying
11
+
-**Keep PR in green state** by monitoring CI checks and resolving blockers
12
+
-**Smart merge handling** for repos with auto-merge enabled
13
+
-**Effort tracking** — reports total fixes, conflicts, and duration at completion
14
+
15
+
This command **always** ensures the PR CI is green before considering the job done. It will auto-fix CI failures, auto-address all review comments (from bots and humans), and **wait** until everything is green — CI checks passing, no unresolved review comments, no merge conflicts. Do not stop the loop until all conditions are met or max iterations is reached.
9
16
10
17
## Usage
11
18
12
19
```bash
13
20
/github:babysit-pr
14
21
/github:babysit-pr --pr 123
15
22
/github:babysit-pr --auto-merge
23
+
/github:babysit-pr --fix-ci # Auto-fix CI failures
24
+
/github:babysit-pr --force-merge # Force merge even if auto-merge is stuck
16
25
/github:babysit-pr --max-iterations 10
26
+
/github:babysit-pr --ci-timeout 30 # CI wait timeout in minutes
17
27
/github:babysit-pr --dry-run
18
28
```
19
29
20
30
## Options
21
31
22
32
-`--pr <number>`: Specific PR number (default: current branch's PR)
23
33
-`--auto-merge`: Merge PR when CI passes and all review comments are resolved
34
+
-`--fix-ci`: Attempt to auto-fix CI failures by analyzing error logs
35
+
-`--force-merge`: Force merge via API even if auto-merge is stuck (use with caution)
24
36
-`--max-iterations <n>`: Maximum fix iterations (default: 10)
37
+
-`--ci-timeout <n>`: Maximum minutes to wait for CI (default: 15)
25
38
-`--dry-run`: Preview what would happen without making changes
26
39
27
40
## How It Works
28
41
29
42
### 1. Initial Setup
30
43
- Verify we're on a feature branch (not main/master)
31
44
- Find the PR for current branch (or use `--pr`)
45
+
- Check if repo has auto-merge enabled (for later handling)
32
46
- Record start time for effort tracking
47
+
- Validate git state (no uncommitted changes)
33
48
34
49
### 2. Babysit Loop
35
50
36
51
For each iteration:
37
52
38
53
#### Step A: Wait for CI and Reviews
39
-
- Poll CI status until all checks complete (or timeout after 15 min)
40
-
- Wait for review bots to post their comments (30s grace period after CI)
54
+
- Poll CI status until all checks complete (timeout per `--ci-timeout`, default 15 min)
55
+
- Track which checks are failing vs passing
56
+
- Wait for review bots to post their comments (30s grace period after CI completes)
Copy file name to clipboardExpand all lines: statusline/.claude-plugin/plugin.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{
2
2
"name": "statusline",
3
-
"version": "1.7.0",
4
-
"description": "Multi-provider status bar with context health, API rate limits (Anthropic 5h/7d + z.ai GLM tokens/tools), git branch, and active tools. Auto-detects provider from model name. Supports 1/2/3 line layouts with smart hiding.",
3
+
"version": "1.8.0",
4
+
"description": "Configurable multi-line status bar with context health, cache hit rate, session duration, API rate limits (Anthropic 5h/7d + z.ai GLM), git branch, and active tools. Supports 1/2/3 line layouts, icon themes, and template presets.",
0 commit comments