-
Notifications
You must be signed in to change notification settings - Fork 8
/
.mergify.yml
60 lines (55 loc) · 1.62 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
pull_request_rules:
- name: backport patches to cryostat-v3.0 branch
conditions:
- base=main
- label=backport
actions:
backport:
branches:
- cryostat-v3.0
assignees:
- "{{ author }}"
- name: auto label PRs from reviewers
conditions:
- author=@reviewers
actions:
label:
add:
- safe-to-test
- name: dismiss stale reviews
conditions:
- base=main
actions:
dismiss_reviews:
approved: [ 'mergify', 'Mergifyio' ]
changes_requested: [ 'mergify', 'Mergifyio' ]
- name: block pull requests that manually update web-client submodule
conditions:
- or:
- files=src/main/webui
- files~=src/main/webui/
actions:
review:
type: REQUEST_CHANGES
message: >-
Pull Request blocked. `webui` submodule updates are performed automatically by CI when that repository
is updated. Please revert or drop all changes to the `webui` submodule from this PR and perform any
required frontend work by opening and merging a PR against
[cryostat-web](https://github.com/cryostatio/cryostat-web).
- name: request reviews from the reviewers team
conditions:
- label=review-requested
actions:
request_reviews:
teams:
- "@cryostatio/reviewers"
- name: remove review-requested label upon reviewing
conditions:
- or:
- "#approved-reviews-by>0"
- "#changes-requested-reviews-by>0"
- "#commented-reviews-by>0"
actions:
label:
remove:
- review-requested