forked from palantir/conjure-python-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.policy.yml
53 lines (49 loc) · 1.28 KB
/
.policy.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
policy:
approval:
- or:
- infra team approval
- infra team co-approval
- excavator only touched baseline, gradle files or versions.props
- excavator only touched package.json and lock files
disapproval:
requires:
organizations: [ "palantir" ]
approval_rules:
- name: infra team approval
requires:
count: 1
teams:
- "palantir/infrastructure"
# Require two *contributing* infra maintainers to approve changes
- name: infra team co-approval
options:
allow_contributor: true
requires:
count: 2
teams:
- "palantir/infrastructure"
- name: excavator only touched baseline, gradle files or versions.props
requires:
count: 0
if:
has_author_in:
users: [ "svc-excavator-bot" ]
only_changed_files:
paths:
- "^\\.baseline/.*$"
- "^.*gradle$"
- "^gradle/wrapper/.*"
- "^gradlew$"
- "^gradlew.bat$"
- "^versions.props$"
- "^versions.lock$"
- name: excavator only touched package.json and lock files
requires:
count: 0
if:
has_author_in:
users: [ "svc-excavator-bot" ]
only_changed_files:
paths:
- "^.*yarn.lock$"
- "^.*package.json$"