Skip to content

Commit

Permalink
fix: older API versions have different attributes for bots
Browse files Browse the repository at this point in the history
"user": {
  ...
  "login": "dependabot[bot]",
  "type": "Bot",
  ...
}
  • Loading branch information
wassimk committed Jun 4, 2024
1 parent bcb2026 commit 1420eba
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 @@ -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`,
Expand Down

0 comments on commit 1420eba

Please sign in to comment.