Don't create a comment if hide: true

This commit is contained in:
W Scott Jasso 2025-09-29 16:42:06 -07:00 committed by GitHub
parent fd19551a2a
commit cdda075109
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,6 +69,13 @@ async function run(): Promise<undefined> {
}
return
}
if (hideOldComment) {
if (!previous) {
await minimizeComment(octokit, previous.id, hideClassify)
}
return
}
if (!previous) {
if (onlyUpdateComment) {
@ -85,11 +92,6 @@ async function run(): Promise<undefined> {
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