Skip to content

Commit da0b896

Browse files
authored
docs(agent): require merge confirmation (#112)
1 parent ceb118c commit da0b896

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

AGENTS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ gh pr merge <pr#> --squash --delete-branch
137137
pnpm agent worktree delete <name>
138138
```
139139

140+
合并门禁(必须执行):
141+
- **在合并之前必须询问用户**,并明确告知当前工作目录(worktree 路径)。
142+
- 用户 review 确认后才允许执行合并。
143+
140144
---
141145

142146
## 重要提醒

CLAUDE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,5 +81,6 @@ gh pr create --body "Closes #28"
8181
- 所有业务逻辑必须有单元测试
8282
- 使用 TypeScript 严格模式
8383
- PR 描述使用 `Closes #issue编号` 自动关联任务
84+
- 合并前必须告知当前 worktree 路径并征求用户确认
8485

8586
</coding_guidelines>

scripts/agent/readme.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ pnpm agent worktree list worktree 概览
9191
pnpm agent worktree delete <name> [--force]
9292
9393
PR 规则: 描述中使用 Closes #issue编号 自动关联
94+
合并门禁: 合并前必须告知当前 worktree 路径并征求用户确认
9495
`)
9596
}
9697

0 commit comments

Comments
 (0)