[PATCH] D119312: issue-release-workflow: Add support for /cherry-pick command in issue body

Tom Stellard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 9 23:43:38 PST 2022


tstellar updated this revision to Diff 407402.
tstellar added a comment.

Add back condition to limit action to llvm/llvm-project repo


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119312/new/

https://reviews.llvm.org/D119312

Files:
  .github/workflows/issue-release-workflow.yml


Index: .github/workflows/issue-release-workflow.yml
===================================================================
--- .github/workflows/issue-release-workflow.yml
+++ .github/workflows/issue-release-workflow.yml
@@ -19,9 +19,12 @@
     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 @@
     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 at v2


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119312.407402.patch
Type: text/x-patch
Size: 940 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220210/fa0a51ef/attachment.bin>


More information about the llvm-commits mailing list