-
Notifications
You must be signed in to change notification settings - Fork 0
/
revy.yml
63 lines (56 loc) · 1.49 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
apiVersion: reviewpad.com/v0.0.3
mode: silent
labels:
small:
description: small changes
# color is the hexadecimal color code for the label, without the leading #.
color: "294b69"
medium:
description: small changes
color: "a8c3f7"
large:
description: large changes
color: "8a2138"
rules:
isSmall:
kind: patch
description: small pull request
spec: $size() <= 200
isMedium:
kind: patch
description: medium-sized pull request
spec: $size() > 200 && $size() <= 800
isLarge:
kind: patch
description: large-sized pull request
spec: $size() > 800
touchesContracts:
kind: patch
description: touches package contracts
spec: $hasFilePattern("packages/contracts/**")
protectionGates:
- name: assign-reviewers-contracts
description: Assign team to review the smart contracts
patchRules:
- rule: touchesContracts
actions:
- $assignReviewer(["naps62", "zamith", "DavideSilva"])
- name: label-with-size
alwaysRun: true
description: Label pull requests with size
patchRules:
- rule: isSmall
extraActions:
- $removeLabel("medium")
- $removeLabel("large")
- $addLabel("small")
- rule: isMedium
extraActions:
- $removeLabel("small")
- $removeLabel("large")
- $addLabel("medium")
- rule: isLarge
extraActions:
- $removeLabel("small")
- $removeLabel("medium")
- $addLabel("large")