When openning a backport PR, adding a reference to the original PR. This will be used later for updating the original PR/issue once the backport is done (with different label) Closes scylladb/scylladb#17973
68 lines
1.5 KiB
YAML
68 lines
1.5 KiB
YAML
pull_request_rules:
|
|
- name: put PR in draft if conflicts
|
|
conditions:
|
|
- label = conflicts
|
|
- author = mergify[bot]
|
|
- head ~= ^mergify/
|
|
actions:
|
|
edit:
|
|
draft: true
|
|
- name: Delete mergify backport branch
|
|
conditions:
|
|
- base~=branch-
|
|
- or:
|
|
- merged
|
|
- closed
|
|
actions:
|
|
delete_head_branch:
|
|
- name: Automate backport pull request 5.2
|
|
conditions:
|
|
- or:
|
|
- closed
|
|
- merged
|
|
- or:
|
|
- base=master
|
|
- base=next
|
|
- label=backport/5.2 # The PR must have this label to trigger the backport
|
|
- label=promoted-to-master
|
|
actions:
|
|
copy:
|
|
title: "[Backport 5.2] {{ title }}"
|
|
body: |
|
|
{{ body }}
|
|
|
|
{% for c in commits %}
|
|
(cherry picked from commit {{ c.sha }})
|
|
{% endfor %}
|
|
|
|
Refs #{{number}}
|
|
branches:
|
|
- branch-5.2
|
|
assignees:
|
|
- "{{ author }}"
|
|
- name: Automate backport pull request 5.4
|
|
conditions:
|
|
- or:
|
|
- closed
|
|
- merged
|
|
- or:
|
|
- base=master
|
|
- base=next
|
|
- label=backport/5.4 # The PR must have this label to trigger the backport
|
|
- label=promoted-to-master
|
|
actions:
|
|
copy:
|
|
title: "[Backport 5.4] {{ title }}"
|
|
body: |
|
|
{{ body }}
|
|
|
|
{% for c in commits %}
|
|
(cherry picked from commit {{ c.sha }})
|
|
{% endfor %}
|
|
|
|
Refs #{{number}}
|
|
branches:
|
|
- branch-5.4
|
|
assignees:
|
|
- "{{ author }}"
|