.github/workflows/labeler.yml
raw| 1 | name: "Pull Request Labeler" |
| 2 | on: |
| 3 | pull_request_target: |
| 4 | types: [opened] |
| 5 | |
| 6 | permissions: {} |
| 7 | |
| 8 | jobs: |
| 9 | pr-labeler: |
| 10 | runs-on: ubuntu-latest |
| 11 | permissions: |
| 12 | pull-requests: write # to add labels |
| 13 | steps: |
| 14 | - name: Label the PR |
| 15 | uses: gerrymanoim/pr-prefix-labeler@c8062327f6de59a9ae1c19f7f07cacd0b976b6fa # v3 |
| 16 | continue-on-error: true |
| 17 | env: |
| 18 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 19 | if: github.repository == 'numpy/numpy' |