Skip to content

Commit

Permalink
fix(mergify): Mergify config needs adjusting for latest mergify relea…
Browse files Browse the repository at this point in the history
…ses (#6321)

* fix(mergify): Mergify config needs adjusting for latest mergify releases

* fix(mergify): Add integration test checks

* fix(mergify): Add integration test checks

* fix(mergify): Add integration test checks

* fix(mergify): Use just queue_conditions

Reduces duplication since the queue_conditions would happen before merge_conditions.

(cherry picked from commit 3f43ac2)
  • Loading branch information
jasonmcintosh authored and mergify[bot] committed Jan 3, 2025
1 parent c2ba7f0 commit ac983e1
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions .mergify.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,72 @@
queue_rules:
- name: default
conditions:
- status-success=build
merge_method: squash
queue_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:
Expand Down

0 comments on commit ac983e1

Please sign in to comment.