Merge pull request #9262 from reitermarkus/triage-bot

Skip review for pull requests by BrewTestBot.
This commit is contained in:
Markus Reiter 2020-11-23 05:46:30 +01:00 committed by GitHub
commit bc16784ee9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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