diff --git a/.mergify.yml b/.mergify.yml index 876d88127a..13205f77e0 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -1,61 +1,75 @@ queue_rules: - name: default - conditions: - - status-success=build + merge_method: squash + queue_conditions: + - check-success=build + - check-success=it-test + merge_conditions: + - check-success=build + - check-success=it-test pull_request_rules: + - name: Make sure PR are up to date before merging + description: This automatically updates PRs when they are out-of-date with the + base branch to avoid semantic conflicts (next step is using a merge queue). + conditions: [] + actions: + update: + - name: Automatically merge backports to releases on succesful build + conditions: + - base~=^(release-) + - head~=^mergify\/bp\/ + - "author=mergify[bot]" + actions: + queue: + name: default + label: + add: ["auto merged"] - name: Automatically merge on CI success and review conditions: - base=master - - status-success=build - "label=ready to merge" - "approved-reviews-by=@oss-approvers" + - "#approved-reviews-by>=1" actions: queue: - method: squash name: default label: add: ["auto merged"] - name: Automatically merge release branch changes on CI success and release manager review conditions: - base~=^release- - - status-success=build - "label=ready to merge" - "approved-reviews-by=@release-managers" actions: queue: - method: squash name: default label: add: ["auto merged"] - name: Automatically merge PRs from maintainers on CI success and review conditions: - base=master - - status-success=build - "label=ready to merge" - "author=@oss-approvers" + - "#approved-reviews-by>=1" actions: queue: - method: squash name: default label: add: ["auto merged"] - name: Automatically merge autobump PRs on CI success conditions: - base~=^(master|release-) - - status-success=build - "label~=autobump-*" - "author:spinnakerbot" actions: queue: - method: squash name: default label: add: ["auto merged"] - name: Request reviews for autobump PRs on CI failure conditions: - base~=^(master|release-) - - status-failure=build - "label~=autobump-*" - base=master actions: