forked from palantir/conjure-java-runtime
-
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:
- repo owner approval
- repo owner 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: repo owner approval
requires:
count: 1
admins: true
# Require two *contributing* maintainers to approve changes
- name: repo owner co-approval
options:
allow_contributor: true
requires:
count: 2
admins: true
- 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$"
- "^gradle.properties$"
- "^settings.gradle$"
- "^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$"