mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-12 11:41:14 +00:00
Don't create a comment if hide: true
This commit is contained in:
parent
fd19551a2a
commit
cdda075109
1 changed files with 7 additions and 5 deletions
12
src/main.ts
12
src/main.ts
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue