Skip to content

Commit

Permalink
ci(Mergify): configuration update (#7592)
Browse files Browse the repository at this point in the history
* use queues
* rebase+merge strategy
* merge+squash strategy

Signed-off-by: Francesco Gazzetta <fgaz@fgaz.me>
  • Loading branch information
fgaz authored Aug 30, 2021
1 parent 4dd8aa4 commit bd4d1d9
Showing 1 changed file with 25 additions and 5 deletions.
30 changes: 25 additions & 5 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,29 @@
pull_request_rules:
# rebase+merge strategy
- actions:
merge:
strict: smart+fasttrack
method: squash
name: Automatically merge pull requests
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:
- label=merge me
- '#approved-reviews-by>=2'
- '#approved-reviews-by>=2'
# 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: Put pull requests in the squash+merge queue
conditions:
- label=squash+merge me
- '#approved-reviews-by>=2'

queue_rules:
- name: default
conditions: []

0 comments on commit bd4d1d9

Please sign in to comment.