[llvm] workflows: Automatically make backport requests from merged PRs (PR #126993)

Louis Dionne via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 17 06:33:37 PST 2025


================
@@ -0,0 +1,29 @@
+name: PR Release Workflow
+
+permissions:
+  contents: read
+
+on:
+  pull_request:
+    types:
+      - milestoned
+      - closed
+
+jobs:
+  backport-commit:
+    runs-on: ubuntu-22.04
+    if: >-
+      github.repository == 'llvm/llvm-project' &&
+      github.event.pull_request.merged &&
+      contains(github.event.pull_request.milestone.title, 'Release')
----------------
ldionne wrote:

This doesn't check that the PR targets the current Release milestone. So, AFAICT, if I create a milestone for the next release (LLVM 21) and I merge a PR, it would get automatically cherry-picked onto the release branch. I don't think that's intended.

https://github.com/llvm/llvm-project/pull/126993


More information about the llvm-commits mailing list