Skip review for pull requests by BrewTestBot.

This commit is contained in:
Markus Reiter 2020-11-23 05:08:05 +01:00
parent 53c59cd5a8
commit 16736755ff

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