[IRBuilder] Refactor FMF interface (#121657)
[llvm-project.git] / .github / workflows / merged-prs.yml
blobe29afd4097f9fbe5adf22ae77d5d0cf9f3fa3186
1 name: "Add buildbot information to first PRs from new contributors"
3 permissions:
4   contents: read
6 on:
7   # It's safe to use pull_request_target here, because we aren't checking out
8   # code from the pull request branch.
9   # See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
10   pull_request_target:
11     types:
12       - closed
14 jobs:
15   buildbot_comment:
16     runs-on: ubuntu-latest
17     permissions:
18       pull-requests: write
19     if: >-
20       (github.repository == 'llvm/llvm-project') &&
21       (github.event.pull_request.merged == true)
22     steps:
23       - name: Checkout Automation Script
24         uses: actions/checkout@v4
25         with:
26           sparse-checkout: llvm/utils/git/
27           ref: main
29       - name: Setup Automation Script
30         working-directory: ./llvm/utils/git/
31         run: |
32           pip install --require-hashes -r requirements.txt
34       - name: Add Buildbot information comment
35         working-directory: ./llvm/utils/git/
36         run: |
37           python3 ./github-automation.py \
38             --token '${{ secrets.GITHUB_TOKEN }}' \
39             pr-buildbot-information \
40             --issue-number "${{ github.event.pull_request.number }}" \
41             --author "${{ github.event.pull_request.user.login }}"