Skip to content

Commit

Permalink
Refactor mergify config
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurz committed Feb 12, 2025
1 parent f715c1f commit 1758cc4
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@ defaults:

queue_rules:
- name: default
merge_method: merge
update_method: rebase
queue_conditions:
# Conditions to get out of the queue (= merged)
- check-success~=/ Ready To Merge$

- name: rebase
merge_method: rebase
update_method: rebase
queue_conditions:
# Conditions to get out of the queue (= merged)
- check-success~=/ Ready To Merge$

- name: squash
merge_method: squash
update_method: rebase
queue_conditions:
# Conditions to get out of the queue (= merged)
- check-success~=/ Ready To Merge$
Expand All @@ -20,8 +36,6 @@ pull_request_rules:
- label=status:merge-when-green
actions:
queue:
merge_method: merge
update_method: rebase
name: default

- name: Merge (Rebase) PRs that are ready
Expand All @@ -34,9 +48,7 @@ pull_request_rules:
- label=status:merge-rebase-when-green
actions:
queue:
merge_method: rebase
update_method: rebase
name: default
name: rebase

- name: Merge (Squash) PRs that are ready
conditions:
Expand All @@ -48,9 +60,7 @@ pull_request_rules:
- label=status:merge-squash-when-green
actions:
queue:
merge_method: squash
update_method: rebase
name: default
name: squash

- name: Delete the PR branch and remove label after merge/close
conditions:
Expand Down

0 comments on commit 1758cc4

Please sign in to comment.