mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-19 14:35:50 +00:00
halted when deleteOldComment is true
This commit is contained in:
commit
1401eb0016
1 changed files with 1 additions and 5 deletions
|
|
@ -50,11 +50,6 @@ async function run(): Promise<undefined> {
|
|||
header
|
||||
)
|
||||
|
||||
if (!previous && !deleteOldComment) {
|
||||
await createComment(octokit, repo, pullRequestNumber, body, header)
|
||||
return
|
||||
}
|
||||
|
||||
if (deleteOldComment) {
|
||||
if (previous) {
|
||||
await deleteComment(octokit, previous.id)
|
||||
|
|
@ -63,6 +58,7 @@ async function run(): Promise<undefined> {
|
|||
}
|
||||
|
||||
if (!previous) {
|
||||
await createComment(octokit, repo, pullRequestNumber, body, header)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue