forked from GoogleChrome/developer.chrome.com
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pullapprove.yml
110 lines (106 loc) · 3.5 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
version: 3
groups:
# Extensions
# Handles any changes related to extensions, web store, and chrome apps.
# By default Simeon and Andy will be tagged in as reviewers, but anyone
# on the dcc-extensions, dcc-content, or dcc-approvers team can approve PRs.
extensions:
reviewers:
users:
- awfuchs
- dotproto
teams:
# Prefix a username or team with ~ to include them in the reviewer pool
# but skip them when sending review requests.
- ~dcc-extensions
- ~dcc-content
- ~dcc-eng
- ~dcc-approvers
reviews:
# Assign all possible reviewers
request: 99
conditions:
- >
files.include('site/en/docs/apps/*') or
files.include('site/en/docs/extensions/*') or
files.include('site/en/docs/webstore/*') or
files.include('site/_data/docs/apps/*') or
files.include('site/_data/docs/extensions/*') or
files.include('site/_data/docs/webstore/*') or
files.include('site/_data/i18n/docs/apps.yml') or
files.include('site/_data/i18n/docs/extensions.yml') or
files.include('site/_data/i18n/docs/webstore.yml')
# DevTools
# Handles any changes related to devtools.
# By default Jecelyn will be tagged in as a reviewer, but anyone
# on the dcc-devtools, dcc-content, dcc-eng, or dcc-approvers teams can
# approve PRs.
devtools:
reviewers:
users:
- chybie
teams:
# Prefix a username or team with ~ to include them in the reviewer pool
# but skip them when sending review requests.
- ~dcc-devtools
- ~dcc-content
- ~dcc-eng
- ~dcc-approvers
reviews:
# Assign all possible reviewers
request: 99
conditions:
- '"reviewers: devtools" in labels'
- >
files.include('site/en/docs/devtools/*') or
files.include('site/_data/docs/devtools/*') or
files.include('site/_data/i18n/docs/devtools.yml') or
files.include('site/en/blog/*').exclude('site/en/blog/blog.11tydata.js')
# Content
# Handles any changes related to site content.
content:
reviewers:
teams:
- dcc-content
- ~dcc-eng
- ~dcc-approvers
reviews:
# Assign everyone on the content team for reviews.
request: 99
conditions:
# Only tag the content team if the review has not been handled by
# one of the prior teams.
- 'len(groups.active) == 0'
- >
files.include('site/en/*') or
files.include('redirects.yaml') or
files.include('site/_data/docs/*') or
files.include('site/_data/i18n/*') or
files.include('site/_data/authorsData.json') or
files.include('site/_data/supportedTags.json')
# Code
# Handles any changes to programmatic files.
code:
reviewers:
teams:
- dcc-eng
reviews:
# The number of people who should be requested for review at any given
# time. Default is 1.
request: 2
conditions:
# The engineering team is the default owner for any code related files.
- >
contains_any_globs(files, [
'**/*.js',
'**/*.css',
'**/*.scss',
'**/*.html',
'**/*.htm',
'**/*.njk',
'**/*.toml',
'**/*.sh'
]) or
files.include('*.yaml').exclude('redirects.yaml') or
files.include('*.yml').exclude('site/_data/docs/*').exclude('site/_data/i18n/*') or
files.include('*.json').exclude('site/_data/authorsData.json').exclude('site/_data/supportedTags.json')