Mining PR Review Comments to Surface Team’s Unwritten Code‑Review Rules
说明与用途
PR Rulebook 分析 PR 审查评论,提取未记录的审查规则,并按置信度排序供人工验证。
问题
Teams often have implicit code‑review conventions that are never documented, making it hard for new members and automated tools to enforce consistent standards.
结果
The pilot run on 15 merged PRs from ruff yielded 45 review comments and two candidate rules, revealing limitations in the initial clustering logic and leading to improved evidence filtering across multiple PRs.
工作流
- Clone the PR Rulebook repo
- Install dependencies and build the CLI
- Set a read‑only GitHub token
- Run the CLI against a target repo for the last 6 months
- Review the generated REVIEW_RULES.md for candidate rules and evidence
证据
The v0 clustering emitted two candidate rules.
The fix now requires evidence across at least two distinct PRs.
- 记录日期: 2026-09-22T03:45:46.248Z