Loading...
Loading...
Compare original and translation side by side
| Mode | When | Reference |
|---|---|---|
| Local CLI | Before push, get early feedback | |
| PR Threads | After CodeRabbit reviews your PR | |
| 模式 | 适用场景 | 参考资料 |
|---|---|---|
| 本地CLI | 推送代码前,获取早期反馈 | |
| PR线程 | CodeRabbit评审你的PR之后 | |
node .claude/skills/coderabbit-workflow/scripts/export-comments.ts --pr <number>references/workflow-examples.mdstatus: 'fixed'node .claude/skills/coderabbit-workflow/scripts/reply-to-threads.ts --file .tmp/coderabbit-*.jsonstatus !== 'pending''pending''fixed'node .claude/skills/coderabbit-workflow/scripts/export-comments.ts --pr <number>references/workflow-examples.mdstatus: 'fixed'node .claude/skills/coderabbit-workflow/scripts/reply-to-threads.ts --file .tmp/coderabbit-*.jsonstatus !== 'pending''pending''fixed'| Script | Purpose |
|---|---|
| Run CodeRabbit CLI and save findings |
| Export PR comments to local JSON |
| Batch reply to threads after fixes |
| Poll for approval, request review/approval automatically |
| 脚本 | 用途 |
|---|---|
| 运行CodeRabbit CLI并保存评审结果 |
| 将PR评论导出到本地JSON文件 |
| 修复问题后批量回复线程 |
| 轮询审批状态,自动请求评审/审批 |
| Reference | Content |
|---|---|
| Installation, authentication, troubleshooting |
| CLI commands and async workflow |
| All commit message templates |
| Complete workflow examples |
| 参考资料 | 内容 |
|---|---|
| 安装、认证、故障排除 |
| CLI命令与异步工作流 |
| 所有提交消息模板 |
| 完整工作流示例 |
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>references/commit-formats.mdCo-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>references/commit-formats.mdundefinedundefined
The monitor script:
- Polls every 60 seconds (configurable via `--interval`)
- Checks for open CodeRabbit comments that need addressing
- Waits 15 minutes before requesting a review if none received
- Waits 30 minutes before requesting approval if not approved
- Exits with code 0 on approval, code 2 if comments need addressing
**Timing requirements (automated by monitor script):**
| Time Since Last Commit | Action |
|------------------------|--------|
| 0-15 minutes | Wait for CodeRabbit to review automatically |
| 15+ minutes (no review) | Request review: `@coderabbitai review` |
| 30+ minutes (no approval) | Request approval: `@coderabbitai approve` |
**Manual commands (if not using monitor script):**
```bash
监控脚本:
- 每60秒轮询一次(可通过`--interval`配置)
- 检查是否有需要处理的未关闭CodeRabbit评论
- 如果未收到评审,等待15分钟后请求评审
- 如果未获得审批,等待30分钟后请求审批
- 审批通过时以代码0退出,若有评论需要处理则以代码2退出
**时间要求(由监控脚本自动执行):**
| 距离上次提交的时间 | 操作 |
|------------------------|--------|
| 0-15分钟 | 等待CodeRabbit自动评审 |
| 15+分钟(无评审) | 请求评审:`@coderabbitai review` |
| 30+分钟(无审批) | 请求审批:`@coderabbitai approve` |
**手动命令(若不使用监控脚本):**
```bashundefinedundefined