Skip to content

Commit

Permalink
update Mergify queue strategies
Browse files Browse the repository at this point in the history
Mergify is requiring that separate queues be used for different
merge strategies, staerting in mid-September with a brownout in
mid-August.

https://docs.mergify.com/configuration/file-format/#queue-rules
  • Loading branch information
geekosaur committed Aug 16, 2024
1 parent dadad70 commit bca9211
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@ pull_request_rules:
- actions:
queue:
name: default
# Merge into master with a merge commit
method: merge
# Update the pr branch with rebase, so the history is clean
update_method: rebase
name: Put pull requests in the rebase+merge queue
conditions:
- base=master
Expand All @@ -33,11 +29,7 @@ pull_request_rules:
# merge+squash strategy
- actions:
queue:
name: default
method: squash
# both update methods get absorbed by the squash, so we use the most
# reliable
update_method: merge
name: squash
name: Put pull requests in the squash+merge queue
conditions:
- base=master
Expand All @@ -59,11 +51,8 @@ pull_request_rules:
# rebase+merge strategy for backports: require 1 approver instead of 2
- actions:
queue:
name: default
name: backports
# Merge with a merge commit
method: merge
# Update the pr branch with rebase, so the history is clean
update_method: rebase
name: Put backports in the rebase+merge queue
conditions:
- label=merge me
Expand All @@ -74,11 +63,7 @@ pull_request_rules:
# merge+squash strategy for backports: require 1 approver instead of 2
- actions:
queue:
name: default
method: squash
# both update methods get absorbed by the squash, so we use the most
# reliable
update_method: merge
name: backport-squash
name: Put backports in the squash+merge queue
conditions:
- label=squash+merge me
Expand All @@ -96,5 +81,20 @@ pull_request_rules:
- body~=automatic backport

queue_rules:
# Mergify now requires different queues for different strategies
- name: default
update_bot_account: Mikolaj
merge_method: merge
update_method: rebase
- name: squash
update_bot_account: Mikolaj
merge_method: squash
update_method: merge
- name: backports
update_bot_account: Mikolaj
merge_method: merge
update_method: rebase
- name: backport-squash
update_bot_account: Mikolaj
merge_method: squash
update_method: merge

0 comments on commit bca9211

Please sign in to comment.