From ef122698787b6b391a988d204174c90f2d3d274c Mon Sep 17 00:00:00 2001 From: Tomoya Kashifuku Date: Sun, 3 Mar 2024 14:49:36 +0900 Subject: [PATCH] use filter condition instead as type of login name --- dist/index.js | 2 +- src/main.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 8239bd1..c9bf9ad 100644 --- a/dist/index.js +++ b/dist/index.js @@ -29029,7 +29029,7 @@ async function run() { owner, repo, issue_number: prNumber - })).data.filter(c => c.user?.login === 'github-actions[bot]'); + })).data.filter(c => c.user?.type === 'Bot'); const reviewComments = (await octokit.rest.pulls.listReviewComments({ owner, repo, diff --git a/src/main.ts b/src/main.ts index a50d311..7408a83 100644 --- a/src/main.ts +++ b/src/main.ts @@ -28,7 +28,7 @@ export async function run(): Promise { repo, issue_number: prNumber }) - ).data.filter(c => c.user?.login === 'github-actions[bot]') + ).data.filter(c => c.user?.type === 'Bot') const reviewComments = ( await octokit.rest.pulls.listReviewComments({