Skip to content

Commit

Permalink
mergify: support for backport-major.minor (#40716)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Sep 11, 2024
1 parent c75a7a4 commit 3a5cd59
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,20 +146,21 @@ pull_request_rules:
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:
* `backport-v8./d.0` is the label to automatically backport to the `8./d` branch. `/d` is the digit
- name: add backport-v8.x label for main only
* `backport-8./d` is the label to automatically backport to the `8./d` branch. `/d` is the digit
- name: add backport-8.x label for main only
conditions:
- -label~=^backport-v8.x
- -label~=^backport-8.x
- base=main
- -merged
- -closed
actions:
comment:
message: |
`backport-v8.x` has been added to help with the transition to the new branch `8.x`.
`backport-8.x` has been added to help with the transition to the new branch `8.x`.
label:
add:
- backport-v8.x
- backport-8.x
- name: notify the backport has not been merged yet
conditions:
- -merged
Expand All @@ -175,7 +176,7 @@ pull_request_rules:
- name: backport patches to 7.17 branch
conditions:
- merged
- label=backport-v7.17.0
- label~=^(backport-v7.17.0|backport-7.17)$
actions:
backport:
assignees:
Expand Down Expand Up @@ -344,7 +345,7 @@ pull_request_rules:
- name: backport patches to 8.15 branch
conditions:
- merged
- label=backport-v8.15.0
- label~=^(backport-v8.15.0|backport-8.15)$
actions:
backport:
assignees:
Expand All @@ -357,7 +358,7 @@ pull_request_rules:
- name: backport patches to 8.x branch
conditions:
- merged
- label=backport-v8.x
- label~=^(backport-v8.x|backport-8.x)$
actions:
backport:
assignees:
Expand Down

0 comments on commit 3a5cd59

Please sign in to comment.