Filter CI on PR contents + Mergify support

This commit is contained in:
abejgonzalez
2022-04-07 18:16:29 -07:00
committed by mergify-bot
parent 46d902943e
commit 3e7fbe2925
5 changed files with 99 additions and 7 deletions

24
.mergify.yml Normal file
View File

@@ -0,0 +1,24 @@
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.13.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]