aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.mergify.yml33
1 files changed, 31 insertions, 2 deletions
diff --git a/.mergify.yml b/.mergify.yml
index f28da865..cf1f5f10 100644
--- a/.mergify.yml
+++ b/.mergify.yml
@@ -35,15 +35,30 @@ pull_request_rules:
label:
add: [Backported]
+ - name: backport to 1.2.x and 1.3.x
+ conditions:
+ - merged
+ - base=master
+ - milestone=1.2.X
+ actions:
+ backport:
+ branches:
+ - 1.2.x
+ - 1.3.x
+ ignore_conflicts: True
+ label_conflicts: "bp-conflict"
+ label:
+ add: [Backported]
+
+
- name: label Mergify backport PR
conditions:
- - base=1.3.x
- body~=This is an automated backport of pull request \#\d+ done by Mergify
actions:
label:
add: [Backport]
- - name: automatic squash-and-merge of backport PRs
+ - name: automatic squash-and-merge of 1.3.x backport PRs
conditions:
- status-success=continuous-integration/travis-ci/pr
- "#changes-requested-reviews-by=0"
@@ -56,3 +71,17 @@ pull_request_rules:
method: squash
strict: smart
strict_method: merge
+
+ - name: automatic squash-and-merge of 1.2.x backport PRs
+ conditions:
+ - status-success=continuous-integration/travis-ci/pr
+ - "#changes-requested-reviews-by=0"
+ - base=1.2.x
+ - label="Backport"
+ - label!="DO NOT MERGE"
+ - label!="bp-conflict"
+ actions:
+ merge:
+ method: squash
+ strict: smart
+ strict_method: merge