Skip to content

Commit

Permalink
Merge 2b9905d into 42f8125
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Jan 14, 2020
2 parents 42f8125 + 2b9905d commit 0c1aa1f
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 2 deletions.
44 changes: 44 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
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=Travis CI - Pull Request
- 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=Travis CI - Pull Request
- 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=Travis CI - Pull Request
- 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=Travis CI - Pull Request
- label~=ready-to-merge:.*
actions:
review: {}
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ matrix:
notifications:
email: false

# Do not build my PR twice. Use the build on branch.
if: NOT (type == pull_request AND head_repo == tkf/Kaleido.jl)
# Only build branches via PR to avoid running CI twice.
# https://docs.travis-ci.com/user/conditional-builds-stages-jobs
# https://docs.travis-ci.com/user/conditions-v1
if: branch = master OR tag IS present OR type != push

before_install:
- unset JULIA_PROJECT
Expand Down

0 comments on commit 0c1aa1f

Please sign in to comment.