[llvm] [GitHub][workflows] Add buildbot information comment to first merged PR from a new contributor (PR #78292)
David Spickett via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 17 03:17:25 PST 2024
================
@@ -0,0 +1,42 @@
+name: "Add buildbot information to first PRs from new contributors"
+
+permissions:
+ contents: read
+
+on:
+ # It's safe to use pull_request_target here, because we aren't checking out
+ # code from the pull request branch.
+ # See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
+ pull_request_target:
+ types:
+ - closed
+
+jobs:
+ buildbot_comment:
+ runs-on: ubuntu-latest
+ permissions:
+ pull-requests: write
+ if: >-
+ (github.repository == 'llvm/llvm-project') &&
+ (github.event.pull_request.merged == true)
+ steps:
+ - name: Checkout Automation Script
+ uses: actions/checkout at v4
+ with:
+ sparse-checkout: llvm/utils/git/
+ ref: main
+
+ - name: Setup Automation Script
+ working-directory: ./llvm/utils/git/
+ run: |
+ chmod a+x github-automation.py
----------------
DavidSpickett wrote:
I've used `python3`, if that's cool with you I'll do that for the other workflows in another PR.
https://github.com/llvm/llvm-project/pull/78292
More information about the llvm-commits
mailing list