From 8841f831d11335e87c5230c7b4e299c4c70b5ad8 Mon Sep 17 00:00:00 2001 From: Wassim Metallaoui Date: Tue, 4 Jun 2024 13:22:32 -0500 Subject: [PATCH] fix: there is an attribute just for bots, let's use it I noticed this action sometimes doesn't work. And In testing I see the name for dependabot is not always what we expect. But I see this is_both attribute so let's use it. { "author": { "is_bot": true, "login": "app/dependabot" } } --- src/action.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/action.js b/src/action.js index 94afbe0..61e5c68 100644 --- a/src/action.js +++ b/src/action.js @@ -17,7 +17,7 @@ const run = async () => { if ( (!assignees || assignees.length === 0) && - author.login !== 'dependabot[bot]' + !author.is_bot ) { await client.request( `POST /repos/${owner}/${repo}/issues/${issue_number}/assignees`,