Skip to content

docs(skill): 补合并后删分支提示 + 测试仓分支占位方法论 - #2512

Closed
DoctorReid wants to merge 1 commit into
mainfrom
docs/skill-merge-cleanup-hint
Closed

docs(skill): 补合并后删分支提示 + 测试仓分支占位方法论#2512
DoctorReid wants to merge 1 commit into
mainfrom
docs/skill-merge-cleanup-hint

Conversation

@DoctorReid

@DoctorReid DoctorReid commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

背景

#2511 收尾过程中沉淀两条方法论,补进 pr-review / pr-finishing skill。

改动

  • 合并后提示删分支:pr-review(通用原则)+ pr-finishing(§5)——PR 合并后提示删本地 + remote 分支,只提示不主动(分支可能还在用)。
  • 测试仓分支占位:pr-review(§0)——审 PR 时无论有无配套测试仓 PR,都先本地建同名分支占位,防后续补测试忘记切分支 → 误 commit 测试仓 main(feat: 体力刷本资源简化到快捷手册资源栏一次性识别 #23484ca301d 教训:测试直接进 main 致所有 PR test-check 红)。

验证

纯 skill/docs 改动,无代码影响。

🤖 Generated with Claude Code

Summary by CodeRabbit

  • 文档
    • 补充 PR 合并后的分支清理提示,涵盖本地与远程分支删除命令。
    • 明确分支清理仅供用户确认,不会自动执行,并提醒根据后续使用需求决定保留时机。
    • 完善 PR 测试准备流程:确保测试分支存在,并基于最新测试主分支同步更新。
    • 增加测试分支管理说明,规范合并后的收尾操作。

- pr-review + pr-finishing: PR 合并后提示删本地 + remote 分支(只提示,不主动)
- pr-review: 审 PR 时无论有无配套测试仓 PR,都先本地建同名分支占位(防补测试忘记切分支 → 误 commit 测试仓 main,即 #2348 的 4ca301d 教训)

Co-Authored-By: Claude Code <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 69803496-1181-425a-ba40-6449efca1a41

📥 Commits

Reviewing files that changed from the base of the PR and between d26ad7a and 26a56eb.

📒 Files selected for processing (2)
  • skills/zzz-od-dev-pr-finishing/SKILL.md
  • skills/zzz-od-dev-pr-review/SKILL.md

📝 Walkthrough

Walkthrough

更新 PR 审查技能文档,补充测试仓同名分支与基线同步流程,并新增合并后本地及远端分支清理提示,明确不自动执行删除。

Changes

PR 流程文档

Layer / File(s) Summary
测试仓分支与基线准备
skills/zzz-od-dev-pr-review/SKILL.md
处理每个 PR 前确保测试仓存在同名分支,并在该分支上同步最新 origin/main,避免测试提交进入测试仓 main
合并后分支清理提示
skills/zzz-od-dev-pr-finishing/SKILL.md, skills/zzz-od-dev-pr-review/SKILL.md
新增本地与远端分支删除命令提示,明确仅供用户确认,不主动执行。

Estimated code review effort: 1 (Trivial) | ~3 minutes

Possibly related PRs

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/skill-merge-cleanup-hint

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@DoctorReid DoctorReid closed this Jul 19, 2026
@DoctorReid
DoctorReid deleted the docs/skill-merge-cleanup-hint branch July 19, 2026 05:56
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jul 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant