Nuxt/.github/workflows/semantic-pull-requests.yml

43 lines
1.2 KiB
YAML
Raw Permalink Normal View History

name: chore
on:
pull_request_target:
types:
- opened
- edited
- synchronize
permissions: {}
2023-07-25 14:47:29 +00:00
jobs:
semantic-pr:
2023-07-25 14:47:29 +00:00
permissions:
contents: read
2023-07-25 14:47:29 +00:00
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
if: github.repository == 'nuxt/nuxt' && !startsWith(github.head_ref, 'v')
runs-on: ubuntu-latest
name: Semantic pull request
steps:
- name: Validate PR title
uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5.5.3
with:
scopes: |
kit
nuxi
nuxt
2024-09-24 14:21:48 +00:00
rspack
schema
test-utils
ui-templates
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 }}