Add test commit #85
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" | |
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: | |
contents: read | |
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.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.GITHUB_TOKEN }} |