Skip to content
name: "Pull Request Labeler"
on:
pull_request_target:
types: [opened]
jobs:
label_pull_request:
# Permissions needed for labelling Pull Requests automatically
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
# label based on changed files
- uses: actions/labeler@v5
continue-on-error: true
if: github.repository == 'scipy/scipy'
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: ".github/label-globs.yml"
# label based on PR title
- uses: github/[email protected]
if: github.repository == 'scipy/scipy'
with:
configuration-path: .github/labeler.yml
include-title: 1
include-body: 0
enable-versioned-regex: 0
repo-token: ${{ secrets.GITHUB_TOKEN }}