Skip to content

Commit

Permalink
chore: Configure Mergify to open backport PRs by labels [skip ci]
Browse files Browse the repository at this point in the history
Use Mergify to automatically create backport PRs according
to `backport-to/<branch>` labels.

Signed-off-by: Kiefer Chang <[email protected]>
  • Loading branch information
bk201 committed Sep 13, 2024
1 parent 21679ef commit 1a33e22
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,36 @@ pull_request_rules:
actions:
comment:
message: This pull request is now in conflict. Could you fix it @{{author}}? 🙏

- name: Automatically open v1.4 backport PR
conditions:
- base=master
- label="backport-to/v1.4"
actions:
backport:
branches:
- v1.4
assignees:
- "{{ author }}"

- name: Automatically open v1.3 backport PR
conditions:
- base=master
- label="backport-to/v1.3"
actions:
backport:
branches:
- v1.3
assignees:
- "{{ author }}"

- name: Automatically open v1.2 backport PR
conditions:
- base=master
- label="backport-to/v1.2"
actions:
backport:
branches:
- v1.2
assignees:
- "{{ author }}"

0 comments on commit 1a33e22

Please sign in to comment.