semantic-pull-request.yml 952 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. name: Semantic Pull Request
  2. on:
  3. pull_request_target:
  4. types:
  5. - opened
  6. - edited
  7. - synchronize
  8. jobs:
  9. main:
  10. runs-on: ubuntu-latest
  11. name: Semantic Pull Request
  12. steps:
  13. - name: Validate PR title
  14. uses: amannn/action-semantic-pull-request@v5
  15. with:
  16. wip: true
  17. subjectPattern: ^(?![A-Z]).+$
  18. subjectPatternError: |
  19. The subject "{subject}" found in the pull request title "{title}"
  20. didn't match the configured pattern. Please ensure that the subject
  21. doesn't start with an uppercase character.
  22. requireScope: false
  23. types: |
  24. fix
  25. feat
  26. docs
  27. style
  28. refactor
  29. perf
  30. test
  31. build
  32. ci
  33. chore
  34. revert
  35. types
  36. release
  37. env:
  38. GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}