-
Notifications
You must be signed in to change notification settings - Fork 2
/
.policy.yml
57 lines (55 loc) · 1.09 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
55
56
57
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:
- ".*Dockerfile$"
- ".*Dockerfile.app$"
- ".*go.mod$"
- ".*go.sum$"
- ".*package-lock.json$"
- ".*package.json$"
- ".*poetry.lock$"
- ".*pyproject.toml$"
- ".*requirements.*.in$"
- ".*requirements.*.txt$"
- "^.github/workflows/.*$"
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