Merge pull request #9262 from reitermarkus/triage-bot
Skip review for pull requests by BrewTestBot.
This commit is contained in:
commit
bc16784ee9
6
.github/workflows/triage.yml
vendored
6
.github/workflows/triage.yml
vendored
@ -108,6 +108,12 @@ jobs:
|
|||||||
pull_number: pullRequestNumber,
|
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') {
|
if (pullRequest.author_association != 'MEMBER') {
|
||||||
core.warning('Pull request author is not a member.')
|
core.warning('Pull request author is not a member.')
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user