diff --git a/src/main.ts b/src/main.ts index 4498f85..19d9677 100644 --- a/src/main.ts +++ b/src/main.ts @@ -50,11 +50,6 @@ async function run(): Promise { 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 { } if (!previous) { + await createComment(octokit, repo, pullRequestNumber, body, header) return }