[llvm] Pr issue 2 (PR #126989)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 12 16:47:56 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-github-workflow
Author: Tom Stellard (tstellar)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/126989.diff
1 Files Affected:
- (added) .github/workflows/pr-release-workflow.yml (+31)
``````````diff
diff --git a/.github/workflows/pr-release-workflow.yml b/.github/workflows/pr-release-workflow.yml
new file mode 100644
index 0000000000000..2e6bcbea2b264
--- /dev/null
+++ b/.github/workflows/pr-release-workflow.yml
@@ -0,0 +1,31 @@
+name: PR Release Workflow
+
+permissions:
+ contents: read
+
+on:
+ pull_request:
+ types:
+ - milestoned
+ - closed
+
+jobs:
+ backport-commit:
+ runs-on: ubuntu-22.04
+ if: >-
+ github.event.pull_request.merged &&
+ contains(github.event.pull_request.milestone.title, 'Release')
+ permissions:
+ issues: write
+ steps:
+ - uses: actions/github-script at 60a0d83039c74a4aee543508d2ffcb1c3799cdea #v7.0.1
+ with:
+ #github-token: ${{ secrets.ISSUE_SUBSCRIBER_TOKEN }}
+ script: |
+ console.log(`Number: ${context.issue.number}`);
+ github.rest.issues.createComment({
+ issue_number: context.issue.number,
+ owner: context.repo.owner,
+ repo: context.repo.repo,
+ body: `/cherry-pick ${context.sha}`
+ });
``````````
</details>
https://github.com/llvm/llvm-project/pull/126989
More information about the llvm-commits
mailing list