1name: labeler
2
3on:
4 issues:
5 types: [opened]
6 pull_request_target:
7 types: [opened]
8 workflow_dispatch:
9 inputs:
10 issue-number:
11 description: "Issue/PR #"
12 required: true
13 type: string
14
15permissions:
16 issues: write
17 contents: read
18
19jobs:
20 triage:
21 runs-on: ubuntu-latest
22 steps:
23 - uses: github/issue-labeler@c1b0f9f52a63158c4adc09425e858e87b32e9685 # v3.4
24 with:
25 configuration-path: .github/labeler.yml
26 enable-versioned-regex: 0
27 include-title: 1
28 include-body: 0
29 repo-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
30 issue-number: ${{ github.event.inputs.issue-number || github.event.issue.number || github.event.pull_request.number }}