semantic-pull-request.yml 695 B

12345678910111213141516171819202122232425
  1. name: Semantic Pull Request
  2. on:
  3. pull_request_target:
  4. types:
  5. - opened
  6. - edited
  7. - synchronize
  8. jobs:
  9. main:
  10. if: github.repository == 'vitejs/vite'
  11. runs-on: ubuntu-latest
  12. name: Semantic Pull Request
  13. steps:
  14. - name: Validate PR title
  15. uses: amannn/action-semantic-pull-request@v5
  16. with:
  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. env:
  23. GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}