2024-09-02 21:03:47 +00:00
|
|
|
name: chore
|
2023-07-20 09:59:44 +00:00
|
|
|
|
|
|
|
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:
|
2024-09-02 21:03:47 +00:00
|
|
|
semantic-pr:
|
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-08-15 07:11:11 +00:00
|
|
|
if: github.repository == 'nuxt/nuxt' && !startsWith(github.head_ref, 'v')
|
2023-07-20 09:59:44 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Semantic pull request
|
|
|
|
steps:
|
|
|
|
- name: Validate PR title
|
2024-06-29 23:40:33 +00:00
|
|
|
uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3
|
2023-07-20 09:59:44 +00:00
|
|
|
with:
|
|
|
|
scopes: |
|
|
|
|
kit
|
|
|
|
nuxi
|
|
|
|
nuxt
|
|
|
|
schema
|
|
|
|
test-utils
|
2024-05-01 20:42:23 +00:00
|
|
|
ui-templates
|
2023-07-20 09:59:44 +00:00
|
|
|
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 }}
|