[RegisterCoalescer] Fix reuse of instruction pointers #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | |
automate-prs-labels: | |
permissions: | |
pull-requests: write | |
runs-on: ubuntu-latest | |
# 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. | |
if: > | |
github.repository == 'llvm/llvm-project' && | |
github.event.pull_request.draft == false && | |
github.event.pull_request.commits < 10 | |
steps: | |
- uses: actions/labeler@v4 | |
with: | |
configuration-path: .github/new-prs-labeler.yml | |
# workaround for https://github.com/actions/labeler/issues/112 | |
sync-labels: '' | |
repo-token: ${{ secrets.ISSUE_SUBSCRIBER_TOKEN }} |