diff --git a/.github/mergify.yml b/.github/mergify.yml new file mode 100644 index 000000000000..bcc433e6ebd0 --- /dev/null +++ b/.github/mergify.yml @@ -0,0 +1,40 @@ +pull_request_rules: + - name: Automatic merge + description: Conditions required for automatic merging of a PR + conditions: + # let Mergify know that the PR can be merged (added manually) + - label = 🤖-automerge + # block Mergify from merging the PR (added manually) + - label != 🤖-do-not-merge + + # list of CI checks that need to pass in order for the PR to be merged + - check-success=unit-tests + - check-success=integration-tests + - check-success=system-tests + + # Check for required reviews + - "#approved-reviews-by>=2" # Requires 2 approving reviews + - "#changes-requested-reviews-by=0" # No changes requested + - "#review-threads-unresolved=0" # All review threads resolved + + # Optional but recommended checks + - base=master + - -draft # PR is not in draft state + - -conflict # No merge conflicts + actions: + merge: + + + - name: retry CI on failure + conditions: + - base=master + - or: + - check-failure=unit-tests + - check-failure=integration-tests + - check-failure=system-tests + actions: + github_actions: + workflow: + dispatch: + - workflow: .github/workflows/ci-testing-deploy.yml +