Skip to content

Commit

Permalink
fix: there is an attribute just for bots, let's use it
Browse files Browse the repository at this point in the history
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"
  }
}
  • Loading branch information
wassimk committed Jun 4, 2024
1 parent c269dca commit 8841f83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
Expand Down

0 comments on commit 8841f83

Please sign in to comment.