Skip to content

Commit

Permalink
Merge pull request #6546 from webpack/bot/review-permission
Browse files Browse the repository at this point in the history
only set labels for reviews by users with write permission
  • Loading branch information
sokra committed Feb 22, 2018
2 parents 7abe26e + 000b1ee commit ed30285
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions open-bot.yaml
Expand Up @@ -290,6 +290,8 @@ rules:
ensure:
value: "{{review.state}}"
equals: APPROVED
permission:
user: "{{review.user.login}}"
actions:
label:
add: "PR: reviewed-approved"
Expand All @@ -303,6 +305,8 @@ rules:
commit: true
review:
state: APPROVED|CHANGES_REQUESTED
permission:
user: "{{review.user.login}}"
ensure:
value: "{{review.state}}"
equals: CHANGES_REQUESTED
Expand All @@ -319,6 +323,8 @@ rules:
review:
state: APPROVED|CHANGES_REQUESTED
commit: true
permission:
user: "{{review.user.login}}"
not:
label: "review-outdated"
ensure:
Expand Down

0 comments on commit ed30285

Please sign in to comment.