43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
pull_request_rules:
|
|
# For Chipyard version 1.x.y, here let x = minor, y = patch
|
|
# Only support backporting to the last minor release branch.
|
|
# This rule will need to be updated on minor releases.
|
|
- name: backport to latest minor release
|
|
conditions:
|
|
- merged
|
|
- base=main
|
|
- label="Please Backport"
|
|
actions:
|
|
backport:
|
|
branches:
|
|
- 1.6.x
|
|
ignore_conflicts: True
|
|
label_conflicts: "bp-conflict"
|
|
label:
|
|
add: [Backported]
|
|
|
|
- name: label Mergify backport PR
|
|
conditions:
|
|
- body~=This is an automated backport of pull request \#\d+ d
|
|
actions:
|
|
label:
|
|
add: [Backport]
|
|
|
|
- name: check PR has changelog label
|
|
conditions:
|
|
- base=main
|
|
actions:
|
|
post_check:
|
|
success_conditions:
|
|
- "label~=^changelog:"
|
|
title: |
|
|
{% if check_succeed %}
|
|
Labeled for changelog
|
|
{% else %}
|
|
Needs label for changelog
|
|
{% endif %}
|
|
summary: |
|
|
{% if not check_succeed %}
|
|
Your pull request must have a changelog label (e.g. `changelog: ...`).
|
|
{% endif %}
|