| 1 |
name: Issue and Pull Request Labeler |
| 2 |
on: |
| 3 |
issues: |
| 4 |
types: [opened, edited] |
| 5 |
pull_request_target: |
| 6 |
types: [opened, edited] |
| 7 |
|
| 8 |
permissions: |
| 9 |
issues: write |
| 10 |
pull-requests: write |
| 11 |
contents: read |
| 12 |
|
| 13 |
jobs: |
| 14 |
triage: |
| 15 |
runs-on: ubuntu-latest |
| 16 |
steps: |
| 17 |
- uses: github/[email protected] |
| 18 |
with: |
| 19 |
configuration-path: .github/labeler.yaml |
| 20 |
enable-versioned-regex: 0 |
| 21 |
include-title: 1 # match against the title |
| 22 |
include-body: 0 # do not match against the body |
| 23 |
sync-labels: 1 # automatically remove labels that no longer match the issue |
| 24 |
repo-token: ${{ github.token }} |