From d04450b7492d74a40ece54d634ad7b09acf8777c Mon Sep 17 00:00:00 2001 From: Marc LeBlanc <7050295+marcleblanc2@users.noreply.github.com> Date: Fri, 11 Sep 2026 09:07:02 -0600 Subject: [PATCH] spell check: update inline comments whose text changed instead of leaving the old wording Amp-Thread-ID: https://ampcode.com/threads/T-01a08fee-74b4-76dc-aaf9-d1245d68fdc9 Co-authored-by: Amp --- dev/post-spelling-review.mjs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dev/post-spelling-review.mjs b/dev/post-spelling-review.mjs index 94eacb399..ef41020d5 100644 --- a/dev/post-spelling-review.mjs +++ b/dev/post-spelling-review.mjs @@ -258,6 +258,14 @@ async function syncInlineComments(findings) { continue; } if (wanted.has(key)) { + const body = inlineBody(wanted.get(key)); + if (body !== comment.body) { + await githubWrite( + 'PATCH', + `/repos/${REPOSITORY}/pulls/comments/${comment.id}`, + {body} + ); + } wanted.delete(key); } else { await githubWrite(