You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Three command-like PR review mining scripts live under devtools/, but they are not part of the devtools command catalog and two of them duplicate CodeRabbit outside-diff parsing.
Evidence from current master:
devtools/extract_pr_reviews.py, devtools/extract_cr_outside_diff.py, and devtools/parse_review_findings.py all expose a main() function.
None of those modules is registered in devtools/command_catalog.py, so they do not appear in devtools --list-commands or generated docs/devtools.md.
extract_cr_outside_diff.py parses CodeRabbit outside-diff findings from PR-level review bodies.
parse_review_findings.py also parses CodeRabbit outside-diff findings, and additionally parses Copilot/Codex PR-level review bodies.
rg found no docs/tests for extract_cr_outside_diff.py or parse_review_findings.py beyond their help text references to extract_pr_reviews.py.
This leaves a small but real source-organization problem: command-like tooling is invisible to the control plane, and future review-mining work has two independent regex implementations for the same CodeRabbit section.
Acceptance criteria
Pick one canonical review-mining surface.
Either register a documented devtools command, e.g. devtools review-findings, or move/delete/archive these scripts if they are local one-offs.
Remove duplicate CodeRabbit outside-diff parsing or share a single parser.
Add fixture tests for PR-level review extraction, including CodeRabbit outside-diff sections.
Ensure generated devtools docs reflect the chosen public surface if retained.
Superseded by #625. I consolidated this finding into the composite issue so the work can be handled as one coherent slice instead of as a tiny standalone ticket. The original evidence remains available in this issue history.
Activity
Sinity commentedon May 1, 2026
Scope narrowed after review: these were one-off scripts and should be deleted rather than promoted into the devtools catalog. Local cleanup removed:
devtools/extract_pr_reviews.pydevtools/extract_cr_outside_diff.pydevtools/parse_review_findings.pyA follow-up PR can close this issue with pure deletion if the reference check stays clean.
Sinity commentedon May 1, 2026
Superseded by #625. I consolidated this finding into the composite issue so the work can be handled as one coherent slice instead of as a tiny standalone ticket. The original evidence remains available in this issue history.