Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <tstellar@redhat.com>2022-02-17 09:18:03 +0300
committerTom Stellard <tstellar@redhat.com>2022-02-17 09:18:06 +0300
commitfee491a10a3277c51115a7ab6e79fe5223618e86 (patch)
tree4ca42588095d74cf46f6b0271868b0766ef4b122 /.github
parent5bec1ea7a74895895e7831fd951dd8130d4f3d01 (diff)
issue-release-workflow: Add support for /cherry-pick command in issue body
Reviewed By: kwk Differential Revision: https://reviews.llvm.org/D119312
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/issue-release-workflow.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/.github/workflows/issue-release-workflow.yml b/.github/workflows/issue-release-workflow.yml
index 318b4c22379b..e0e03a8970ad 100644
--- a/.github/workflows/issue-release-workflow.yml
+++ b/.github/workflows/issue-release-workflow.yml
@@ -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