diff options
author | Tom Stellard <tstellar@redhat.com> | 2024-01-25 13:11:09 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-25 13:11:09 -0800 |
commit | e99edf6bcb20169e153110426f840a2dfeeec66d (patch) | |
tree | 4f835e0b10ffe664a77fd8731db63dd4882f917a /.github | |
parent | 92ae2ca12be58dd581084f6d952c2158b6fd42aa (diff) | |
download | llvm-e99edf6bcb20169e153110426f840a2dfeeec66d.zip llvm-e99edf6bcb20169e153110426f840a2dfeeec66d.tar.gz llvm-e99edf6bcb20169e153110426f840a2dfeeec66d.tar.bz2 |
[workflows] Drop the intermediate /branch comment for release workflow (#79481)
We used to support a /branch comment to specify a branch with commits to
backport to the release branch. However, now that we can use pull
requests this is not needed.
This also simplifies the process, because now the cherry-pick job can
create the pull request directly instead of having it split across two
separate jobs.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/issue-release-workflow.yml | 33 |
1 files changed, 1 insertions, 32 deletions
diff --git a/.github/workflows/issue-release-workflow.yml b/.github/workflows/issue-release-workflow.yml index 17209ec..112ece4 100644 --- a/.github/workflows/issue-release-workflow.yml +++ b/.github/workflows/issue-release-workflow.yml @@ -35,6 +35,7 @@ jobs: runs-on: ubuntu-latest permissions: issues: write + pull-requests: write if: >- (github.repository == 'llvm/llvm-project') && !startswith(github.event.comment.body, '<!--IGNORE-->') && @@ -65,35 +66,3 @@ jobs: --branch-repo-token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \ --issue-number ${{ github.event.issue.number }} \ auto - - create-pull-request: - name: Create Pull Request - runs-on: ubuntu-latest - permissions: - issues: write - pull-requests: write - if: >- - (github.repository == 'llvm/llvm-project') && - !startswith(github.event.comment.body, '<!--IGNORE-->') && - contains(github.event.comment.body, '/branch ') - - steps: - - name: Fetch LLVM sources - uses: actions/checkout@v4 - with: - persist-credentials: false - - - name: Setup Environment - run: | - pip install -r ./llvm/utils/git/requirements.txt - - - name: Create Pull Request - run: | - printf "%s" "$COMMENT_BODY" | - ./llvm/utils/git/github-automation.py \ - --repo "$GITHUB_REPOSITORY" \ - --token ${{ github.token }} \ - release-workflow \ - --branch-repo-token ${{ secrets.RELEASE_WORKFLOW_PUSH_SECRET }} \ - --issue-number ${{ github.event.issue.number }} \ - auto |