-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.policy.yml
54 lines (52 loc) · 1.13 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
54
# Policy bot configuration
# https://github.com/palantir/policy-bot#configuration
policy:
approval:
- or:
- Dependabot update
- Code change
approval_rules:
# This rule matches when a pr is created by dependabot
- name: Dependabot update
if:
only_has_contributors_in:
users:
- "dependabot[bot]"
only_changed_files:
paths:
- "^.github/workflows/.*$"
- "^docker-compose/Dockerfile$"
has_valid_signatures_by_keys:
key_ids: ["B5690EEEBB952194"]
requires:
# a dependabot pr requires 1 review of review bot or a user
count: 1
teams:
- "coopnorge/engineering"
users:
- "CoopNorgeReviewBot"
options:
invalidate_on_push: true
request_review:
enabled: true
mode: random-users
methods:
github_review: true
- name: Code change
# Any code change will require 1 reviewer
if:
changed_files:
paths:
- ".*"
requires:
count: 1
teams:
- "coopnorge/engineering"
options:
invalidate_on_push: true
request_review:
enabled: true
mode: random-users
count: 8
methods:
github_review: true