diff --git a/.mergify.yml b/.mergify.yml index 51382016..1f7450e7 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -1,8 +1,11 @@ queue_rules: - name: default - conditions: + queue_conditions: + - "-merged" - "#approved-reviews-by>=1" - "#changes-requested-reviews-by=0" + - base=main + - label=AUTOMERGE-REQUESTED - status-success=Lint - status-success=Python (3.9, macos-latest) - status-success=Python (3.12, macos-latest) @@ -11,15 +14,9 @@ queue_rules: - status-success=Python (3.9, windows-latest) - status-success=Python (3.12, windows-latest) - "status-success=ci/circleci: build" - -pull_request_rules: - - name: Automatic rebase, CI and merge - conditions: - - "-merged" + merge_conditions: - "#approved-reviews-by>=1" - "#changes-requested-reviews-by=0" - - base=main - - label=AUTOMERGE-REQUESTED - status-success=Lint - status-success=Python (3.9, macos-latest) - status-success=Python (3.12, macos-latest) @@ -28,12 +25,10 @@ pull_request_rules: - status-success=Python (3.9, windows-latest) - status-success=Python (3.12, windows-latest) - "status-success=ci/circleci: build" - actions: - queue: - name: default - method: rebase - update_method: rebase + merge_method: rebase + update_method: rebase +pull_request_rules: - name: Remove label after merge conditions: - merged @@ -42,3 +37,7 @@ pull_request_rules: label: remove: - AUTOMERGE-REQUESTED + - name: refactored queue action rule + conditions: [] + actions: + queue: