From 1420ebab522982aa1ae8b9837afc8b684aedcc83 Mon Sep 17 00:00:00 2001 From: Wassim Metallaoui Date: Tue, 4 Jun 2024 15:35:13 -0500 Subject: [PATCH] fix: older API versions have different attributes for bots "user": { ... "login": "dependabot[bot]", "type": "Bot", ... } --- src/action.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/action.js b/src/action.js index a1c06ba..0c640d1 100644 --- a/src/action.js +++ b/src/action.js @@ -19,7 +19,7 @@ async function run() { if ( (!assignees || assignees.length === 0) && - !author.is_bot + (!author.is_bot || author.type !== 'Bot') ) { await client.request( `POST /repos/${owner}/${repo}/issues/${issue_number}/assignees`,