From cdda0751093a5fd287dc15900d6a3006b7fcb2c8 Mon Sep 17 00:00:00 2001 From: W Scott Jasso <1896399+scottjasso@users.noreply.github.com> Date: Mon, 29 Sep 2025 16:42:06 -0700 Subject: [PATCH] Don't create a comment if hide: true --- src/main.ts | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main.ts b/src/main.ts index 95adb30..5f08761 100644 --- a/src/main.ts +++ b/src/main.ts @@ -69,6 +69,13 @@ async function run(): Promise { } return } + + if (hideOldComment) { + if (!previous) { + await minimizeComment(octokit, previous.id, hideClassify) + } + return + } if (!previous) { if (onlyUpdateComment) { @@ -85,11 +92,6 @@ async function run(): Promise { return } - if (hideOldComment) { - await minimizeComment(octokit, previous.id, hideClassify) - return - } - if (skipUnchanged && commentsEqual(body, previous.body || "", header)) { // don't recreate or update if the message is unchanged return