2023-07-20 09:59:44 +00:00
|
|
|
name: Semantic pull request
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request_target:
|
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- edited
|
|
|
|
- synchronize
|
|
|
|
|
2023-07-25 14:47:29 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2023-07-20 09:59:44 +00:00
|
|
|
jobs:
|
|
|
|
main:
|
2023-07-25 14:47:29 +00:00
|
|
|
permissions:
|
|
|
|
pull-requests: read # for amannn/action-semantic-pull-request to analyze PRs
|
|
|
|
statuses: write # for amannn/action-semantic-pull-request to mark status of analyzed PR
|
2023-07-20 09:59:44 +00:00
|
|
|
if: github.repository == 'nuxt/nuxt'
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Semantic pull request
|
|
|
|
steps:
|
|
|
|
- name: Validate PR title
|
2023-07-25 14:47:29 +00:00
|
|
|
uses: amannn/action-semantic-pull-request@c3cd5d1ea3580753008872425915e343e351ab54 # v5.2.0
|
2023-07-20 09:59:44 +00:00
|
|
|
with:
|
|
|
|
scopes: |
|
|
|
|
kit
|
|
|
|
nuxi
|
|
|
|
nuxt
|
|
|
|
schema
|
|
|
|
test-utils
|
|
|
|
vite
|
|
|
|
webpack
|
|
|
|
deps
|
|
|
|
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 }}
|