auto-labeling.yml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. name: Auto-labeling
  2. on:
  3. pull_request:
  4. branches:
  5. - master
  6. - dev/*.*.*
  7. # Only following types are handled by the action, but one can default to all as well
  8. types: [opened, reopened, edited, synchronize]
  9. concurrency:
  10. group: ${{ github.workflow }}-${{ github.ref }}
  11. cancel-in-progress: true
  12. jobs:
  13. # Refs: https://github.com/release-drafter/release-drafter
  14. auto-labeling:
  15. runs-on: ubuntu-latest
  16. if: |
  17. (!contains( github.event.pull_request.labels.*.name, 'flag/exclude-from-changelog' )
  18. && !startsWith( github.head_ref, 'changeset-release/' ))
  19. steps:
  20. - uses: release-drafter/release-drafter@v5
  21. with:
  22. disable-releaser: true
  23. env:
  24. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  25. check-title:
  26. runs-on: ubuntu-latest
  27. if: |
  28. (!contains( github.event.pull_request.labels.*.name, 'flag/exclude-from-changelog' )
  29. && !startsWith( github.head_ref, 'changeset-release/' )
  30. && !startsWith( github.head_ref, 'dependabot/' ))
  31. steps:
  32. - uses: amannn/action-semantic-pull-request@v5
  33. with:
  34. types: |
  35. feat
  36. imprv
  37. fix
  38. support
  39. chore
  40. ci
  41. docs
  42. test
  43. requireScope: false
  44. env:
  45. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}