-
Notifications
You must be signed in to change notification settings - Fork 0
/
revy.yml
46 lines (39 loc) · 1.07 KB
/
revy.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
apiVersion: reviewpad.com/v0.0.1
groups:
maintainers:
kind: developers
spec: '["marcelosousa", "ferreiratiago"]'
rules:
changesRevyFile:
kind: patch
description: Changes revy.yml
spec: $hasFileName("revy.yml")
changesGitHubFiles:
kind: patch
description: Changes a file under .github
spec: $hasFilePattern(".github/**")
changesReadmeFile:
kind: patch
description: Maintainers can freely change the README
spec: $hasFileName("README.md") && $isMemberOf($name(), $group("maintainers"))
authoredByMaintainers:
kind: patch
description: Authored by maintainers
spec: $isMemberOf($name(), $group("maintainers"))
protectionGates:
- name: ask
description: Ask mode
patchRules:
- rule: changesRevyFile
- rule: changesGitHubFiles
actions:
- $addLabel("critical")
- $assignReviewer($group("maintainers"))
- name: ship
description: Ship mode
patchRules:
- rule: authoredByMaintainers
- rule: changesReadmeFile
actions:
- $addLabel("ship")
- $merge("rebase")