diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml index 06a132a8c3cb3cf7b99e633394cabcb60454f307..fd319fc0f1f48dbb01722b7378d324b6666f8eae 100644 --- a/.github/workflows/triage.yml +++ b/.github/workflows/triage.yml @@ -108,6 +108,12 @@ jobs: pull_number: pullRequestNumber, }) + const { data: user } = await github.users.getAuthenticated() + if (pullRequest.user.login == user) { + core.warning('Pull request author is a bot.') + return + } + if (pullRequest.author_association != 'MEMBER') { core.warning('Pull request author is not a member.') return