[llvm] [GitHub][workflows] Add buildbot information comment to first merged PR from a new contributor (PR #78292)
Aiden Grossman via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 16 11:54:54 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
----------------
boomanaiden154 wrote:
Is there a reason this isn't `chmod +x` in the tree? We could also just run it with a `python3` prefix instead of making it executable.
https://github.com/llvm/llvm-project/pull/78292
More information about the llvm-commits
mailing list