pr-to-master.yml 1.1 KB

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