-
Notifications
You must be signed in to change notification settings - Fork 290
/
.mergify.yml
99 lines (87 loc) · 2.02 KB
/
.mergify.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
pull_request_rules:
- name: automatic merge for Dependabot pull request that pass CI
conditions:
- author=dependabot[bot]
actions:
comment:
message: "@dependabot merge"
# REVIEW MANAGEMENT
- name: ask alessandrod to review public API changes
conditions:
- files=xtask/public-api/aya.txt
- -closed
actions:
comment:
message: "Hey @alessandrod, this pull request changes the Aya Public API and requires your review."
request_reviews:
users:
- alessandrod
label:
add:
- api/needs-review
# LABEL MANAGEMENT
- name: warn on conflicts
conditions:
- conflict
actions:
comment:
message: "@{{author}}, this pull request is now in conflict and requires a rebase."
label:
add:
- needs-rebase
- name: remove conflict label if not needed
conditions:
- -conflict
actions:
label:
remove:
- needs-rebase
- name: add labels for aya PRs
conditions:
- files~=^aya/
actions:
label:
add:
- aya
- name: add labels for aya-bpf PRs
conditions:
- files~=^(aya-ebpf-macros|ebpf/aya-ebpf(-(cty|bindings))?)/
actions:
label:
add:
- aya-bpf
- name: add labels for aya-log PRs
conditions:
- files~=^aya-log(-common)?/
actions:
label:
add:
- aya-log
- name: add labels for aya-log-ebpf PRs
conditions:
- files~=^(aya-log-common|ebpf/aya-log-ebpf)/
actions:
label:
add:
- aya-log
- name: add labels for aya-obj PRs
conditions:
- files~=^aya-obj/
actions:
label:
add:
- aya-obj
- name: add labels for aya-tool PRs
conditions:
- files~=^aya-tool/
actions:
label:
add:
- aya-tool
- name: add labels for CI/Test and Automation PRs
conditions:
- files~=^(.github|test|xtask)/
actions:
label:
add:
- test