From 76f11c8bc698996bf8adf2f394a51ef1a03199c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20T=C3=B8mmer=C3=A5s?= Date: Mon, 11 Apr 2022 12:51:34 +0200 Subject: [PATCH] fix: remove bot check for existing comments --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index db19514..af37e14 100644 --- a/src/index.js +++ b/src/index.js @@ -199,7 +199,7 @@ async function run(octokit, context, token) { const comments = (await octokit.issues.listComments(commentInfo)).data; for (let i = comments.length; i--; ) { const c = comments[i]; - if (c.user.type === 'Bot' && /[\s\n]*(compressed|gzip)-size-action/.test(c.body)) { + if (/[\s\n]*(compressed|gzip)-size-action/.test(c.body)) { commentId = c.id; break; }