-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Expand file tree
/
Copy path.policy.yml
More file actions
40 lines (38 loc) · 984 Bytes
/
Copy path.policy.yml
File metadata and controls
40 lines (38 loc) · 984 Bytes
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
# curl https://policy-bot.fuel.network/api/validate -XPUT -T .policy.yml
# policy for this repo
approval_defaults:
options:
allow_non_author_contributor: true
policy:
approval:
- and:
- the em team approved a sensitive file change
- or:
- the em team has approved
- a client engineer has approved
disapproval:
# any disapproval from EMs will prevent merge until resolved
requires:
teams:
- "FuelLabs/engineering-managers"
approval_rules:
- name: the em team approved a sensitive file change
requires:
count: 1
teams:
- "FuelLabs/engineering-managers"
if:
changed_files:
paths:
- "^\\.bulldozer\\.yml$"
- "^\\.policy\\.yml$"
- name: the em team has approved
requires:
count: 1
teams:
- "FuelLabs/engineering-managers"
- name: a client engineer has approved
requires:
count: 1
teams:
- "FuelLabs/client"