From 2c37ea742034d0f791ed81c751063f0012568908 Mon Sep 17 00:00:00 2001 From: shimomura-shunsuke Date: Tue, 7 Jul 2026 22:46:12 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Bot=E4=BD=9C=E6=88=90=E3=81=AEPR?= =?UTF-8?q?=E3=81=A7assignee=E8=A8=AD=E5=AE=9A=E3=82=92=E3=82=B9=E3=82=AD?= =?UTF-8?q?=E3=83=83=E3=83=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR作成者がBot(renovate[bot]等)の場合、addAssigneesが失敗するため、 pr.user.typeが"User"の場合のみassigneeを設定するように修正。 --- .github/workflows/auto-assign-pr-creator.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/auto-assign-pr-creator.yml b/.github/workflows/auto-assign-pr-creator.yml index a7b3ae8..fbe7452 100644 --- a/.github/workflows/auto-assign-pr-creator.yml +++ b/.github/workflows/auto-assign-pr-creator.yml @@ -18,6 +18,13 @@ jobs: } const creator = pr.user.login; + const creatorType = pr.user.type; + + if (creatorType !== "User") { + core.info(`${creator} is a ${creatorType}, not a User. Skipping.`); + return; + } + const currentAssignees = pr.assignees.map((a) => a.login); if (currentAssignees.includes(creator)) {