-
Notifications
You must be signed in to change notification settings - Fork 83
/
.mergify.yml
47 lines (44 loc) · 1.14 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
# See https://doc.mergify.io
queue_rules:
- name: default
conditions:
- -title~=(WIP|wip)
- -label~=(blocked|do-not-merge)
- -merged
- -closed
- "#approved-reviews-by>=1"
- -approved-reviews-by~=author
- "#changes-requested-reviews-by=0"
- "#commented-reviews-by=0"
merge_method: squash
commit_message_template: |-
{{ title }} (#{{ number }})
{{ body }}
pull_request_rules:
- name: automatic merge
actions:
comment:
message: Thank you for contributing! Your pull request is now being automatically merged.
queue:
name: default
delete_head_branch: {}
dismiss_reviews: {}
conditions:
- -title~=(WIP|wip)
- -label~=(blocked|do-not-merge)
- -merged
- -closed
- "#approved-reviews-by>=1"
- -approved-reviews-by~=author
- "#changes-requested-reviews-by=0"
- "#commented-reviews-by=0"
- name: remove stale reviews
actions:
dismiss_reviews:
approved: true
conditions:
- author!=aws-cdk-automation
- label!=auto-approve
- base=main
- -merged
- -closed