Skip to content

Commit

Permalink
fix: remove bot check for existing comments (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
flugg authored Sep 27, 2024
1 parent f780fd1 commit 68c0fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,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' && /<sub>[\s\n]*(compressed|gzip)-size-action/.test(c.body)) {
if (/<sub>[\s\n]*(compressed|gzip)-size-action/.test(c.body)) {
commentId = c.id;
break;
}
Expand Down

0 comments on commit 68c0fd1

Please sign in to comment.