mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-24 22:55:13 +00:00
9ef94d6afb
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Daniel Roe <daniel@roe.dev>
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
name: Semantic pull request
|
|
|
|
on:
|
|
pull_request_target:
|
|
types:
|
|
- opened
|
|
- edited
|
|
- synchronize
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
main:
|
|
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
|
|
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@e9fabac35e210fea40ca5b14c0da95a099eff26f # v5.4.0
|
|
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 }}
|