Skip to content

Commit

Permalink
add squash+merge strategy for backports
Browse files Browse the repository at this point in the history
  • Loading branch information
geekosaur authored and Mikolaj committed Apr 18, 2024
1 parent d5f59e7 commit 45b9f0b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,21 @@ pull_request_rules:
- body~=backport
- '#approved-reviews-by>=1'

# 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: Put backports in the squash+merge queue
conditions:
- label=squash+merge me
- base!=master
- body~=backport
- '#approved-reviews-by>=1'

# backports should be labeled as such
- actions:
label:
Expand Down

0 comments on commit 45b9f0b

Please sign in to comment.