diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 0000000000..25a362d184 --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,52 @@ +pull_request_rules: + - name: assign PR to autor + conditions: [] + actions: + assign: + users: + - "@{{ author }}" + - name: remove outdated reviews + conditions: [] + actions: + dismiss_reviews: {} + - name: automatic merge for master when CI passes and 1 review (excluding reviewdog) + conditions: + - "#approved-reviews-by>=1" + - approved-reviews-by!=github-actions + - status-success=codestyle (ubuntu-18.04, 3.6) + - status-success=dl-cpu-core (ubuntu-18.04, 3.6, minimal) + - status-success=dl-cpu-core (ubuntu-18.04, 3.6, latest) + - status-success=dl-cpu-cv (ubuntu-18.04, 3.6, minimal) + - status-success=dl-cpu-cv (ubuntu-18.04, 3.6, latest) + - status-success=dl-cpu-nlp (ubuntu-18.04, 3.6, minimal) + - status-success=dl-cpu-nlp (ubuntu-18.04, 3.6, latest) + - label!=WIP + actions: + merge: + method: squash + - name: automatic merge for master when CI passes and 2 review (including reviewdog) + conditions: + - "#approved-reviews-by>=2" + - approved-reviews-by=github-actions + - status-success=codestyle (ubuntu-18.04, 3.6) + - status-success=dl-cpu-core (ubuntu-18.04, 3.6, minimal) + - status-success=dl-cpu-core (ubuntu-18.04, 3.6, latest) + - status-success=dl-cpu-cv (ubuntu-18.04, 3.6, minimal) + - status-success=dl-cpu-cv (ubuntu-18.04, 3.6, latest) + - status-success=dl-cpu-nlp (ubuntu-18.04, 3.6, minimal) + - status-success=dl-cpu-nlp (ubuntu-18.04, 3.6, latest) + - label!=WIP + actions: + merge: + method: squash + - name: delete head branch after merge + conditions: + - merged + actions: + delete_head_branch: {} + - name: ask to resolve conflict + conditions: + - conflict + actions: + comment: + message: "This pull request is now in conflicts. @{{ author }}, could you fix it? 🙏" \ No newline at end of file