Skip to content

CSpell review: leave no orphaned review body once findings are fixed - #1903

Merged
marcleblanc2 merged 2 commits into
mainfrom
cspell-tidy-resolved-comments
Sep 11, 2026
Merged

CSpell review: leave no orphaned review body once findings are fixed#1903
marcleblanc2 merged 2 commits into
mainfrom
cspell-tidy-resolved-comments

Conversation

@marcleblanc2

@marcleblanc2 marcleblanc2 commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Fixes the recurring CSpell comment mess seen on #1902: after typos are fixed, the review body that carried the inline comments is orphaned (the summary flips to ✅ and inline comments are deleted, but a submitted review cannot be deleted).

  • Post the review with an empty body, so nothing remains once inline comments are deleted
  • Minimize the summary comment as RESOLVED when findings reach zero; unminimize if new findings appear
  • Move the 'up to N commented inline' note from the review body into the summary comment

Tested end-to-end on throwaway PR #1904: with typos, a bodyless review carried the inline comments; after fixing them, the review vanished (no orphaned body) and the summary was minimized as resolved. This PR also flagged and then resolved its own unminimize finding, now in the allow list.

Co-authored-by: Amp amp@ampcode.com

@vercel

vercel Bot commented Sep 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
sourcegraph-docs Ready Ready Preview Sep 11, 2026 9:29am UTC

Request Review

@github-actions

This comment has been minimized.

marcleblanc2 and others added 2 commits September 11, 2026 03:27
Post the inline-comment review with an empty body, minimize the summary
comment as resolved when findings reach zero (and unminimize when new
ones appear), and move the 'up to N inline' note into the summary.

Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-01a08e26-0c39-723b-95ad-65455002f541
Co-authored-by: Amp <amp@ampcode.com>
@marcleblanc2
marcleblanc2 force-pushed the cspell-tidy-resolved-comments branch from 5edacb8 to 6418a66 Compare September 11, 2026 09:27
@marcleblanc2
marcleblanc2 merged commit 3b6a4f8 into main Sep 11, 2026
4 checks passed
@marcleblanc2
marcleblanc2 deleted the cspell-tidy-resolved-comments branch September 11, 2026 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants