-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mergify.yml
42 lines (40 loc) · 1.13 KB
/
.mergify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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 %}