Skip to content

Commit 839ff22

Browse files
Merge pull request #1 from ut-issl/fix/skip-bot-pr-creator
fix: Bot作成のPRでassignee設定をスキップ
2 parents c791cfd + 2c37ea7 commit 839ff22

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/auto-assign-pr-creator.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ jobs:
1818
}
1919
2020
const creator = pr.user.login;
21+
const creatorType = pr.user.type;
22+
23+
if (creatorType !== "User") {
24+
core.info(`${creator} is a ${creatorType}, not a User. Skipping.`);
25+
return;
26+
}
27+
2128
const currentAssignees = pr.assignees.map((a) => a.login);
2229
2330
if (currentAssignees.includes(creator)) {

0 commit comments

Comments
 (0)