mirror of
https://github.com/vitejs/vite.git
synced 2026-03-28 00:31:08 +00:00
28 lines
779 B
YAML
28 lines
779 B
YAML
name: Semantic Pull Request
|
|
|
|
on:
|
|
pull_request_target:
|
|
types:
|
|
- opened
|
|
- edited
|
|
- synchronize
|
|
|
|
jobs:
|
|
main:
|
|
if: github.repository == 'vitejs/vite'
|
|
runs-on: ubuntu-slim
|
|
name: Semantic Pull Request
|
|
permissions:
|
|
pull-requests: read
|
|
steps:
|
|
- name: Validate PR title
|
|
uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6
|
|
with:
|
|
subjectPattern: ^(?![A-Z]).+$
|
|
subjectPatternError: |
|
|
The subject "{subject}" found in the pull request title "{title}"
|
|
didn't match the configured pattern. Please ensure that the subject
|
|
doesn't start with an uppercase character.
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|