-
Notifications
You must be signed in to change notification settings - Fork 0
/
.policy.yml
50 lines (48 loc) · 928 Bytes
/
.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
policy:
approval:
- or:
- Dependabot update
- Code change
approval_rules:
- name: Dependabot update
requires:
count: 1
teams:
- "coopnorge/engineering"
options:
invalidate_on_push: true
request_review:
enabled: true
mode: random-users
count: 8
methods:
github_review: true
if:
only_has_contributors_in:
users:
- "dependabot[bot]"
only_changed_files:
paths:
- "^go.mod$"
- "^go.sum$"
- "^.github/workflows/.*$"
- "^docker-compose/Dockerfile$"
has_valid_signatures_by_keys:
key_ids: ["B5690EEEBB952194"]
- name: Code change
if:
changed_files:
paths:
- ".*"
requires:
count: 2
teams:
- "coopnorge/engineering"
options:
invalidate_on_push: true
request_review:
enabled: true
mode: random-users
count: 8
methods:
github_review: true