Skip to content

Commit

Permalink
Automatically label PRs to main with backport-v8.x (elastic#40718)
Browse files Browse the repository at this point in the history
* Automatically label PRs to `main` with `backport-8.x`

When the `main` branch switches over to `9.0`, we will want most PRs that are merged into
`main` to also be backported to `8.x`. This PR makes this process easier by automatically
adding the `backport-8.x` label to all PRs targeting the `main` branch.

The exceptions will be PRs for changes that should _only_ be present in `9.0`.  For such PRs,
authors should simply remove the `backport-8.x` label from their PR.

* Fix typo in comment

* Add missing v prefix to label for consistent with backport PR rule
  • Loading branch information
ycombinator authored Sep 10, 2024
1 parent f2fcee4 commit 5bd0723
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ 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
**NOTE**: `backport-v8.x` has been added to help with the transition to the new branch 8.x.
label:
add:
- backport-v8.x
- name: notify the backport has not been merged yet
conditions:
- -merged
Expand Down

0 comments on commit 5bd0723

Please sign in to comment.