semantic-pull-request.yml 1005 B

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