feat(review): size-cap eligibility guard for auto-review via review.auto_review.max_added_lines / max_files - #3693
Conversation
…d_lines / max_files Add review.auto_review size caps that skip AI review when added-line totals or changed-file counts exceed configured thresholds, wire diff stats through the queue processor, and cover parse, eligibility, wiring, and integration paths. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3693 +/- ##
=======================================
Coverage 93.35% 93.35%
=======================================
Files 315 315
Lines 32164 32187 +23
Branches 11795 11806 +11
=======================================
+ Hits 30026 30049 +23
Misses 1507 1507
Partials 631 631
🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-06 04:39:29 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 5 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.
|
…3693) Keep docs-only path fallback in resolveAutoReviewSkipForPullRequest while incorporating max_added_lines/max_files wiring. Fix base-branch precedence test by disabling skipDocsOnly for that case. Co-authored-by: Cursor <cursoragent@cursor.com>
Summary
review.auto_review.max_added_linesandmax_filesto the focus manifest so maintainers can skip AI auto-review on oversized PRs (0 = cap disabled).totalAddedLineCount/addedLineCountfrom review diffs and thread counts throughresolveAutoReviewSkipForPullRequest, emittingreview skipped (too large)audit events.Fixes #2065
Test plan
npx tsc -p tsconfig.json --noEmitreview-difftotalAddedLineCounthelper testsfocus-manifestparse/evaluate/round-trip tests for size capsauto-review-wiringtests for resolver +resolveAutoReviewSkipForPullRequestauto-review-config-matrixprecedence case for too-large skipqueue.test.tsintegration test formax_added_linesskip + audit detailMade with Cursor