feat(review): anchor-safety validation drops un-commentable suggested changes - #3839
feat(review): anchor-safety validation drops un-commentable suggested changes#3839jimcody1995 wants to merge 2 commits into
Conversation
Add addedLinesFromPatch and only render GitHub suggested-change blocks when the finding anchor is an ADDED (+) diff line. Plain inline comments still work on context lines; files without a patch never emit suggestions. Fixes JSONbored#2140 Co-authored-by: Cursor <cursoragent@cursor.com>
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 #3839 +/- ##
=======================================
Coverage 93.41% 93.41%
=======================================
Files 326 326
Lines 32855 32873 +18
Branches 12035 12040 +5
=======================================
+ Hits 30691 30709 +18
Misses 1530 1530
Partials 634 634
🚀 New features to boost your workflow:
|
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 Gittensory review result - reject/close recommendedReview updated: 2026-07-06 14:20:21 UTC
🛑 Suggested Action - Reject/Close
Review summary Nits — 5 non-blocking
Why this is blocked
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.
|
|
Gittensory is closing this pull request on the maintainer's behalf (Linked issue overlaps another open PR; duplicate of another open PR). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
Summary
addedLinesFromPatchand only render GitHub suggested-change blocks on ADDED ("+") diff lines.Fixes #2140
Validation
npx vitest run test/unit/inline-comments.test.ts— 39 passedinline-comments.ts: 100% statements/branches/linesConflict avoidance
Only
src/review/inline-comments.ts+ tests. No file overlap with open PRs #3823–#3836.Made with Cursor