name: Issue Labeler

on:
  issues:
    types: [opened]
  pull_request:
    types: [opened]
  workflow_dispatch: # allows manual triggering

permissions:
  issues: write
  contents: read

jobs:
  triage:
    runs-on: ubuntu-latest
    steps:
      - uses: github/issue-labeler@v3.4
        with:
          configuration-path: .github/labeler.yml
          enable-versioned-regex: 0
          include-title: 1
          repo-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
