forked from leanprover-community/mathlib3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mergify.yml
53 lines (52 loc) · 1.77 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
pull_request_rules:
- name: automatic merge on CI success and review - pr
conditions:
- status-success=continuous-integration/travis-ci/pr
- "#changes-requested-reviews-by=0"
- base=master
- label=ready-to-merge
- approved-reviews-by=@leanprover-community/mathlib-maintainers
actions:
delete_head_branch: {}
merge:
method: squash
strict: smart
strict_method: merge
# second condition necessary, as mergify was failing if the travis "pr" build
# finished before the travis "push" build due to branch protection setting requiring
# the "push" build to complete before a merge
- name: automatic merge on CI success and review - push
conditions:
- status-success=continuous-integration/travis-ci/push
- status-success=continuous-integration/travis-ci/pr
- "#changes-requested-reviews-by=0"
- base=master
- label=ready-to-merge
- approved-reviews-by=@leanprover-community/mathlib-maintainers
actions:
delete_head_branch: {}
merge:
method: squash
strict: smart
strict_method: merge
# Allows PRs with [skip ci] and [ci skip] to be merged without waiting for Travis.
- name: automatic merge on CI success and review - push
conditions:
- title~=\[skip ci\]|\[ci skip\]
- "#changes-requested-reviews-by=0"
- base=master
- label=ready-to-merge
- approved-reviews-by=@leanprover-community/mathlib-maintainers
actions:
delete_head_branch: {}
merge:
method: squash
strict: smart
strict_method: merge
# In practice this turns out to be really annoying.
# - name: remove outdated reviews
# conditions:
# - base=master
# actions:
# dismiss_reviews:
# approved: True