feat(review): skip auto-review of docs-only PRs via review.auto_review.skip_docs_only - #3690
Conversation
…w.skip_docs_only Add a manifest knob that skips AI review when every changed file classifies as docs, thread changed paths through the queue processor, and cover parse, eligibility, wiring, and integration paths for codecov. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-06 04:19:02 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 6 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Reconcile with the merged JSONbored#3690 base while keeping public-surface eligibility, stored-file fallback, and isDocsOnlyChangedPaths wiring. Co-authored-by: Cursor <cursoragent@cursor.com>
…break ui:typecheck (#3709) path-matchers.ts importing isCodeFile/isTestFile from local-branch.ts pulled the whole review-scoring/Gittensor-API subsystem into any caller's import graph. focus-manifest.ts (which PR #3690 made import classifyChangedFile from path-matchers.ts) is reachable from the UI via a long-standing cross-boundary import, so ui:typecheck started failing repo-wide with Env/D1Database ambient-type errors it has no way to resolve. Both functions were only ever thin, self-contained path-matching helpers incidentally defined in local-branch.ts. Move them into path-matchers.ts (zero remaining dependency on local-branch.ts), with local-branch.ts importing them back and re-exporting for its existing importers. Add a structural test asserting path-matchers.ts never imports from local-branch.ts again.
Summary
review.auto_review.skip_docs_onlyto the focus manifest so maintainers can skip AI auto-review when every changed file classifies as docs (classifyChangedFile === "docs").resolveAutoReviewSkipForPullRequest/evaluateAutoReviewSkipReason, emittingreview skipped (docs only)audit events. Empty file lists fail-safe to eligible.Fixes #2063
Test plan
npx tsc -p tsconfig.json --noEmitfocus-manifestparse/evaluate/round-trip tests forskip_docs_onlyauto-review-wiringtests for resolver +resolveAutoReviewSkipForPullRequestauto-review-config-matrixprecedence case for docs-only skipqueue.test.tsintegration test for docs-only skip + audit detailMade with Cursor