pr-to-master.yml 959 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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: github.event.pull_request.merged == true
  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. steps:
  22. - uses: amannn/action-semantic-pull-request@v3.4.2
  23. with:
  24. types: |
  25. feat
  26. imprv
  27. fix
  28. support
  29. chore
  30. ci
  31. docs
  32. test
  33. requireScope: false
  34. validateSingleCommit: true
  35. env:
  36. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}