pr-to-master.yml 1.1 KB

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