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)) {