pr-to-master.yml 1021 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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: ${{ !startsWith( github.ref, 'refs/heads/support/prepare-v' ) }}
  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: ${{ !startsWith( github.ref, 'refs/heads/support/prepare-v' ) }}
  22. steps:
  23. - uses: amannn/action-semantic-pull-request@v3.4.2
  24. with:
  25. types: |
  26. feat
  27. imprv
  28. fix
  29. support
  30. chore
  31. ci
  32. docs
  33. test
  34. requireScope: false
  35. env:
  36. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}