auto-labeling.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. && !startsWith( github.head_ref, 'mergify/merge-queue/' ))
  20. steps:
  21. - uses: release-drafter/release-drafter@v5
  22. with:
  23. disable-releaser: true
  24. env:
  25. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
  26. check-title:
  27. runs-on: ubuntu-latest
  28. if: |
  29. (!contains( github.event.pull_request.labels.*.name, 'flag/exclude-from-changelog' )
  30. && !startsWith( github.head_ref, 'changeset-release/' )
  31. && !startsWith( github.head_ref, 'mergify/merge-queue/' ))
  32. steps:
  33. - uses: amannn/action-semantic-pull-request@v5
  34. with:
  35. types: |
  36. feat
  37. imprv
  38. fix
  39. support
  40. chore
  41. ci
  42. docs
  43. test
  44. requireScope: false
  45. env:
  46. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}