Skip to content

Commit

Permalink
Setup Mergify (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf authored May 30, 2020
1 parent 30ee70c commit d993a37
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
pull_request_rules:
- name: remove outdated reviews
conditions:
- base=master
actions:
dismiss_reviews: {}
- name: automatic squash-merge when CI passes
conditions:
- base=master
- "#approved-reviews-by>=1"
- status-success~=Test Julia .*
- -status-failure~=Test Julia [0-9].*
- status-success=Documenter
- label=ready-to-merge:squash
- label!=work-in-progress
actions:
merge:
method: squash
- name: automatic rebase-merge when CI passes
conditions:
- base=master
- "#approved-reviews-by>=1"
- status-success~=Test Julia .*
- -status-failure~=Test Julia [0-9].*
- status-success=Documenter
- label=ready-to-merge:rebase
- label!=work-in-progress
actions:
merge:
method: rebase
- name: automatic merge when CI passes
conditions:
- base=master
- "#approved-reviews-by>=1"
- status-success~=Test Julia .*
- -status-failure~=Test Julia [0-9].*
- status-success=Documenter
- label=ready-to-merge:merge
- label!=work-in-progress
actions:
merge:
method: merge
- name: automatically approve PR when pushed by me
conditions:
- author=tkf
- base=master
- status-success~=Test Julia .*
- -status-failure~=Test Julia [0-9].*
- status-success=Documenter
- label~=ready-to-merge:.*
actions:
review: {}

0 comments on commit d993a37

Please sign in to comment.