diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 0000000..728d6cc --- /dev/null +++ b/.mergify.yml @@ -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: {}