feat(review): View diff links in changed-files summary (#2157)#3922
Conversation
…#2157) Extract GitHub Files-tab diff-anchor URL building into a pure module, render per-file rows with public-safe View diff links when repo context is available, and keep the grouped category table when context is absent. Co-authored-by: Cursor <cursoragent@cursor.com>
…ored#2157) Repair the broken collapsible test block and exercise em-dash fallbacks for unanchorable paths and invalid repo context, category sort ordering, and greater-than path escaping. 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 #3922 +/- ##
=======================================
Coverage 93.58% 93.58%
=======================================
Files 358 359 +1
Lines 34342 34364 +22
Branches 12570 12576 +6
=======================================
+ Hits 32138 32160 +22
Misses 1580 1580
Partials 624 624
🚀 New features to boost your workflow:
|
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ Gittensory review result - approve/merge recommendedReview updated: 2026-07-07 06:57:49 UTC
✅ Suggested Action - Approve/Merge
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.
|
Summary
changed-files-diff-link.tsto build public-safe GitHub Files-tab#diff-…anchors from repo-relative paths (SHA-256)changedFilesSummaryContextis present, render one row per changed file with a View diff link; without context, keep the existing grouped category table byte-identical (feat(review): render changed-files summary as a collapsible table in the unified comment #2145)repoFullName+pullNumberfrom the unified-comment publish path inprocessors.tsFixes #2157
Test plan
changed-files-diff-link.test.ts— anchor hash, URL validation, invalid inputschanged-files-summary-collapsible.test.ts— per-file links, em-dash fallbacks, path escaping, category sortqueue.test.ts— end-to-end unified comment posts per-file View diff links whenreview.changed_files_summaryis onnpx tsc -p tsconfig.json --noEmitpasses locallyMade with Cursor