diff --git a/build/main.js b/build/main.js index c94966d..dad6dac 100644 --- a/build/main.js +++ b/build/main.js @@ -25228,7 +25228,9 @@ async function run() { per_page: perPage } )) { - const comment = comments.find((c) => c.body?.includes(COMMENT_TAG)); + const comment = comments.find( + (c) => c.user && c.user.login === "github-actions[bot]" && c.body?.includes(COMMENT_TAG) + ); if (comment) { existingCommentId = comment.id; break; diff --git a/src/main.ts b/src/main.ts index 07485ed..8d5db07 100644 --- a/src/main.ts +++ b/src/main.ts @@ -208,7 +208,12 @@ async function run(): Promise { } )) { // Search for the comment with the unique tag - const comment = comments.find((c) => c.body?.includes(COMMENT_TAG)); + const comment = comments.find( + (c) => + c.user && + c.user.login === 'github-actions[bot]' && + c.body?.includes(COMMENT_TAG) + ); if (comment) { existingCommentId = comment.id; break;