forked from GoogleChrome/web.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pullapprove.yml
78 lines (75 loc) · 2.4 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
version: 3
groups:
# Learn CSS
# Handles any changes related to the Learn CSS course
learncss:
reviewers:
users:
- una
- argyleink
teams:
- ~web-dev-content
- ~web-dev-eng
- ~web-dev-approvers
reviews:
# Assign everyone on the content team for reviews.
request: 99
conditions:
- >
glob('src/site/content/en/learn/css/**/*.md') in files or
glob('src/site/content/en/learn/css/**/*.yml') in files or
glob('src/site/_data/courses/css/**/*.yml') in files
# 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:
# Only tag the content team if the review has not been handled by
# one of the prior teams.
- 'len(groups.active) == 0'
- >
files.include('src/site/content/*') or
files.include('src/images/authors/*') or
files.include('src/site/_data/i18n/*') or
files.include('src/site/_data/authorsData.json') or
files.include('src/site/_data/tagsData.json') or
files.include('src/site/_data/paths/*.json') or
files.include('redirects.yaml')
# 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:
# Only tag the eng team if the review has not been handled by
# one of the prior teams.
- 'len(groups.active) == 0'
# 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('src/site/_data/i18n/*') or
files.include('*.json').exclude('src/site/_data/authorsData.json').exclude('src/site/_data/tagsData.json').exclude('src/site/_data/paths/*.json')