-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mergify.yml
40 lines (36 loc) · 982 Bytes
/
.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
pull_request_rules:
# If there is at least one positive review and CI passed, merge
- name: Automatic merge on CI success and review
conditions:
- status-success=buddy/pipeline/Build & Test
- "#approved-reviews-by>=1"
- base=master
- label!=WIP
actions:
merge:
method: squash
strict: smart
# Delete branch after automatic merge
- name: Delete branch after merge
conditions:
- merged
actions:
delete_head_branch: {}
# Automatically merge Dependabot Pull Requests
- name: Automatic merge for Dependabot pull requests
conditions:
- author=dependabot[bot]
- status-success=buddy/pipeline/Build & Test
- base=master
actions:
merge:
method: squash
strict: smart
# Remove outdated reviews
- name: Remove outdated reviews
conditions:
- base=master
actions:
dismiss_reviews:
approved: True
changes_requested: True