Skip to content

Commit

Permalink
Updating Pull Approve
Browse files Browse the repository at this point in the history
  • Loading branch information
woody-apple committed Jun 19, 2020
1 parent a237cd8 commit 4fa4211
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .pullapprove.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,60 @@
version: 3

github_api_version: "shadow-cat-preview"

############################################################
# Conditions
############################################################

pullapprove_conditions:
############################################################
# Required status checks
############################################################
- condition: "'*restyle*' in statuses.successful"
unmet_status: "failure"
explanation: "Style must be inline before reviewing can be complete"

############################################################
# Draft PRs
############################################################
- condition: "'WIP' not in title"
unmet_status: pending
explanation: "Work in progress"

- condition: "not draft"
unmet_status: pending
explanation: "Work in progress"

############################################################
# Conditions to Skip Review
############################################################
- condition: "base.ref == 'master'"
unmet_status: success
explanation: "Review not required unless merging to master"

############################################################
# Bypass reviews
############################################################
- "'hotfix' not in labels"

############################################################
# Notifications
############################################################

notifications:
############################################################
# New contributors
############################################################
- when: pull_request.opened
if: "author_association == 'FIRST_TIME_CONTRIBUTOR'"
comment: |
Hey @{{ author }}, thanks for the PR! The review will start once
the tests and CI checks have passed. If they don't, please review
the logs and try to fix the issues (ask for help if you can't
figure it out). A reviewer will be assigned once the tests are
passing and they'll walk you through getting the PR finished
and merged.
groups:
############################################################
# Base Required Reviewers
Expand Down

0 comments on commit 4fa4211

Please sign in to comment.