diff --git a/.github/workflows/issue-release-workflow.yml b/.github/workflows/issue-release-workflow.yml --- a/.github/workflows/issue-release-workflow.yml +++ b/.github/workflows/issue-release-workflow.yml @@ -19,18 +19,20 @@ 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: name: Backport Commits runs-on: ubuntu-20.04 if: >- - (github.repository == 'llvm/llvm-project') && !startswith(github.event.comment.body, '') && - 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 @@ -61,7 +63,6 @@ name: Create Pull Request runs-on: ubuntu-20.04 if: >- - (github.repository == 'llvm/llvm-project') && !startswith(github.event.comment.body, '') && contains(github.event.comment.body, '/branch')