Skip to content

[AMDGPU][GlobalISel] Eliminate READANYLANE round trips in mixed build_vector/merge #431574

[AMDGPU][GlobalISel] Eliminate READANYLANE round trips in mixed build_vector/merge

[AMDGPU][GlobalISel] Eliminate READANYLANE round trips in mixed build_vector/merge #431574

Workflow file for this run

name: "Labelling new pull requests"
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:
- opened
- reopened
- ready_for_review
- synchronize
jobs:
greeter:
runs-on: ubuntu-24.04
permissions:
pull-requests: write
container:
image: "ghcr.io/llvm/amd64/ci-ubuntu-24.04-github-automation:latest@sha256:f4193631559b3a6ccd815280f80fd9211305a3f246e75aec84c6c8caea01d2a9"
# Only comment on PRs that have been opened for the first time, by someone
# new to LLVM or to GitHub as a whole. Ideally we'd look for FIRST_TIMER
# or FIRST_TIME_CONTRIBUTOR, but this does not appear to work. Instead check
# that we do not have any of the other author associations.
# See https://docs.github.com/en/webhooks/webhook-events-and-payloads?actionType=opened#pull_request
# for all the possible values.
if: >-
(github.event.action == 'opened') &&
(github.event.pull_request.author_association != 'COLLABORATOR') &&
(github.event.pull_request.author_association != 'CONTRIBUTOR') &&
(github.event.pull_request.author_association != 'MANNEQUIN') &&
(github.event.pull_request.author_association != 'MEMBER') &&
(github.event.pull_request.author_association != 'OWNER')
steps:
- name: Greet Author
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ISSUE_NUMBER: ${{ github.event.pull_request.number }}
PR_AUTHOR: ${{ github.event.pull_request.user.login }}
run: |
github-automation.py \
--token "$GH_TOKEN" \
pr-greeter \
--issue-number "$ISSUE_NUMBER" \
--author "$PR_AUTHOR"
automate-prs-labels:
# Greet first so that only the author gets that notification.
needs: greeter
# See https://github.blog/changelog/2025-11-07-actions-pull_request_target-and-environment-branch-protections-changes/
environment:
name: main-branch-only
deployment: false
runs-on: ubuntu-24.04
# Ignore PRs with more than 10 commits. Pull requests with a lot of
# commits tend to be accidents usually when someone made a mistake while trying
# to rebase. We want to ignore these pull requests to avoid excessive
# notifications.
# always() means that even if greeter is skipped, this job will run.
if: >
always() && github.repository == 'llvm/llvm-project' &&
github.event.pull_request.draft == false &&
github.event.pull_request.commits < 10
steps:
- id: app-token
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
with:
client-id: ${{ secrets.LLVM_TOKEN_GENERATOR_CLIENT_ID }}
private-key: ${{ secrets.LLVM_TOKEN_GENERATOR_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}
permission-contents: read
permission-pull-requests: write
- uses: actions/labeler@b8dd2d9be0f68b860e7dae5dae7d772984eacd6d # v6.2.0
with:
configuration-path: .github/new-prs-labeler.yml
repo-token: ${{ steps.app-token.outputs.token }}