labeler.yml 749 B

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