From 5440134196f5c4937d916f4d3e7a3bbd1c3efb84 Mon Sep 17 00:00:00 2001 From: Francisco Solla Date: Mon, 24 Aug 2026 13:30:51 -0300 Subject: [PATCH] =?UTF-8?q?fix(OPS85):=20guard=20do=20changelog=20usa=20--?= =?UTF-8?q?no-renames=20=E2=80=94=20a=20migra=C3=A7=C3=A3o=20agrega-deleta?= =?UTF-8?q?do+HISTORY-criado=20n=C3=A3o=20=C3=A9=20rename?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/check-changelog-append-only.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/check-changelog-append-only.mjs b/scripts/check-changelog-append-only.mjs index bf07d2cc..183f7df9 100644 --- a/scripts/check-changelog-append-only.mjs +++ b/scripts/check-changelog-append-only.mjs @@ -47,6 +47,7 @@ function listChangedPaths() { 'git', [ 'diff', + '--no-renames', '--name-status', `${mergeBase}...HEAD`, '--', @@ -89,10 +90,10 @@ if (diffLines.length === 0) { process.exit(0) } -// R (rename): status + old path + new path — use the new path. +// --no-renames guarantees the `STATUSpath` shape (no R entries). const changed = diffLines.map((line) => { const [status, ...rest] = line.split('\t') - return { status, path: status.startsWith('R') ? rest[rest.length - 1] : rest.join('\t') } + return { status, path: rest.join('\t') } }) const body = readPrBody()