forked from scipy/scipy
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (29 loc) · 1014 Bytes
/
pull-request-labeler.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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@8558fd74291d67161a8a78ce36a881fa63b766a9 # v5.0.0
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/issue-labeler@c1b0f9f52a63158c4adc09425e858e87b32e9685 # v3.4
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 }}