auto-labeling.yml 1.2 KB

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