Skip to content

Commit 95a8f25

Browse files
committed
ci(Mergify): configuration update
* use queues * rebase+merge strategy * merge+squash strategy Signed-off-by: Francesco Gazzetta <[email protected]>
1 parent 7d4ce47 commit 95a8f25

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

.github/mergify.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,29 @@
11
pull_request_rules:
2+
# rebase+merge strategy
23
- actions:
3-
merge:
4-
strict: smart+fasttrack
5-
method: squash
6-
name: Automatically merge pull requests
4+
queue:
5+
name: default
6+
# Merge into master with a merge commit
7+
method: merge
8+
# Update the pr branch with rebase, so the history is clean
9+
update_method: rebase
10+
name: Put pull requests in the rebase+merge queue
711
conditions:
812
- label=merge me
9-
- '#approved-reviews-by>=2'
13+
- '#approved-reviews-by>=2'
14+
# merge+squash strategy
15+
- actions:
16+
queue:
17+
name: default
18+
method: squash
19+
# both update methods get absorbed by the squash, so we use the most
20+
# reliable
21+
update_method: merge
22+
name: Put pull requests in the squash+merge queue
23+
conditions:
24+
- label=squash+merge me
25+
- '#approved-reviews-by>=2'
26+
27+
queue_rules:
28+
- name: default
29+
conditions: []

0 commit comments

Comments
 (0)