forked from GoogleChrome/web.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pullapprove.yml
More file actions
66 lines (63 loc) · 1.75 KB
/
.pullapprove.yml
File metadata and controls
66 lines (63 loc) · 1.75 KB
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
version: 3
groups:
# Code
# Handles any changes to programmatic files.
code:
reviewers:
teams:
- web-dev-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',
'**/*.yml',
'**/*.toml',
'**/*.sh'
]) or
files.include('*.yaml').exclude('redirects.yaml') or
files.include('*.json').exclude('src/site/_data/authorsData.json').exclude('src/site/_data/tagsData.json').exclude('src/site/_data/paths/*.json')
# Content
# Handles any changes related to site content.
content:
reviewers:
teams:
- web-dev-content
# Prefix a username or team with ~ to include them in the reviewer pool
# but skip them when sending review requests.
- ~web-dev-eng
- ~web-dev-approvers
reviews:
# Assign everyone on the content team for reviews.
request: 99
conditions:
- >
contains_any_globs(files, [
'src/site/content/**',
'src/images/authors/**'
])
# Shared
# Files that can be approved by either the content or the engineering team.
shared:
reviewers:
teams:
- web-dev-content
- ~web-dev-eng
- ~web-dev-approvers
conditions:
- >
contains_any_globs(files, [
'src/site/_data/authorsData.json',
'src/site/_data/tagsData.json',
'src/site/_data/paths/*.json',
'redirects.yaml'
])