-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.policy.yml
60 lines (56 loc) · 1.38 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
58
59
60
---
policy:
approval:
- and:
- status checks
- or:
- plattform-utvikleropplevelse-approval
- dependabot-patch
- dependabot-minor
disapproval:
requires:
teams:
- "nrkno/plattform-utvikleropplevelse"
approval_rules:
- name: status checks
description: A rule that requires status checks to be green
if:
has_successful_status:
- "lint_release / Commit lint"
- name: plattform-utvikleropplevelse-approval
description: A rule that requires approval from one in a team
if:
requires:
count: 1
teams:
- "nrkno/plattform-utvikleropplevelse"
options:
request_review:
enabled: true
mode: teams
- name: dependabot-patch
description: Rule to approve PR when label is patch, author is dependabot
if:
has_author_in:
users:
- "dependabot[bot]"
author_is_only_contributor: true
has_labels:
- "dependencies"
- "patch"
has_valid_signatures: true
requires:
count: 0
- name: dependabot-minor
description: Rule to approve PR when label is minor, author is dependabot
if:
has_author_in:
users:
- "dependabot[bot]"
author_is_only_contributor: true
has_labels:
- "dependencies"
- "minor"
has_valid_signatures: true
requires:
count: 0