Repository navigation
docs(contributing): 多会话/自动化协作者规则 - #6
Conversation
PR 接管留痕、原 diff ⊆ 新 diff 验收、不动他人检出分支(worktree 隔离)、 验证锚定 git 引用而非工作区、rebase 副本分叉时对齐而非重放。 源自 interop n17 波次中重开 PR 丢失 floor 决议的实证教训。
|
There was a problem hiding this comment.
Sorry @im47cn-bot, this account has used its review budget of 5,000,000 diff characters for the last 7 days.
You can request another review in 4 days and 3 hours by commenting @sourcery-ai review.
审查者指南添加双语 CONTRIBUTING 部分,为 PR 交接、范围保持、共享检出隔离、基于 ref 的验证以及变基分支恢复制定五项操作保障措施。 安全接管多会话 PR 的流程图flowchart TD
A[PR takeover requested] --> B[Comment on original PR with new PR link]
B --> C[Preserve original diff and confirmed decisions]
C --> D{Shared checkout occupied?}
D -->|No| E[Use isolated git worktree]
D -->|Yes| F[Push ref directly]
E --> G[Verify with git show ref:path and origin/main]
F --> G
G --> H{Rebased copies already in origin/main?}
H -->|Yes, content anchors match| I[Reset local branch to origin/main]
H -->|No| J[Complete takeover PR]
文件级变更
提示和命令与 Sourcery 交互
自定义你的使用体验访问你的控制面板以:
获取帮助Original review guide in EnglishReviewer's GuideAdds a bilingual CONTRIBUTING section that codifies five operational safeguards for PR handoffs, scope preservation, shared-checkout isolation, ref-based verification, and rebased-branch recovery. Flow diagram for safe multi-session PR takeoverflowchart TD
A[PR takeover requested] --> B[Comment on original PR with new PR link]
B --> C[Preserve original diff and confirmed decisions]
C --> D{Shared checkout occupied?}
D -->|No| E[Use isolated git worktree]
D -->|Yes| F[Push ref directly]
E --> G[Verify with git show ref:path and origin/main]
F --> G
G --> H{Rebased copies already in origin/main?}
H -->|Yes, content anchors match| I[Reset local branch to origin/main]
H -->|No| J[Complete takeover PR]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: 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. Comment |
背景
interop n17 合并波次中,并行会话关闭四个 SDK PR 重开(go#23/python#30/ts#22/php#16)时静默丢失了两项已确认决议(ts Node floor 20、php floor 8.2),事后以补齐 commit + PR 评论留痕修复(e0e9a00 / 9115ce6,均验证后合入)。
变更
组织级 CONTRIBUTING 新增 Multi-session & automated collaborators 一节,五条规则:
git worktree;检出被占时直接推 refgit show <ref>:<path>才是权威均为本轮实证过的操作纪律(规则 2/5 直接来自本次事故的修复路径)。
Sourcery 总结
记录并发会话和自动化贡献者的安全协作实践。
增强功能:
文档:
Original summary in English
Summary by Sourcery
Document safe collaboration practices for concurrent sessions and automated contributors.
Enhancements:
Documentation: