issue-release-workflow: Add support for /cherry-pick command in issue body

Reviewed By: kwk

Differential Revision: https://reviews.llvm.org/D119312
This commit is contained in:
Tom Stellard 2022-02-16 22:18:03 -08:00
parent 5bec1ea7a7
commit fee491a10a
1 changed files with 5 additions and 2 deletions

View File

@ -19,9 +19,12 @@ on:
types:
- created
- edited
issues:
types:
- opened
env:
COMMENT_BODY: ${{ github.event.comment.body }}
COMMENT_BODY: ${{ github.event.action == 'opened' && github.event.issue.body || github.event.comment.body }}
jobs:
backport-commits:
@ -30,7 +33,7 @@ jobs:
if: >-
(github.repository == 'llvm/llvm-project') &&
!startswith(github.event.comment.body, '<!--IGNORE-->') &&
contains(github.event.comment.body, '/cherry-pick')
contains(github.event.action == 'opened' && github.event.issue.body || github.event.comment.body, '/cherry-pick')
steps:
- name: Fetch LLVM sources
uses: actions/checkout@v2