forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.pullapprove.yml
89 lines (78 loc) · 3.31 KB
/
.pullapprove.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: 3
# https://developer.github.com/v3/previews/#draft-pull-requests
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"
############################################################
# License Checks
############################################################
- condition: "'*license/cla*' in statuses.successful"
unmet_status: "pending"
explanation: "CLA must be agreed to by all contributors"
############################################################
# 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
############################################################
required-reviewers:
description: >
[Required
Reviewers](https://github.com/project-chip/connectedhomeip/blob/master/CONTRIBUTING.md#review-requirements)
This is the main group of required reviews for general pull
requests.
type: required
conditions:
- files.include('*')
reviews:
required: 3
request: -1
request_order: shuffle
reviewers:
teams:
- reviewers-amazon
- reviewers-apple
- reviewers-comcast
- reviewers-google
- reviewers-samsung