mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
ci: add semantic pull request workflow (#22241)
This commit is contained in:
parent
6a3cfb1bc9
commit
6508da25c4
34
.github/workflows/semantic-pull-requests.yml
vendored
Normal file
34
.github/workflows/semantic-pull-requests.yml
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
name: Semantic pull request
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types:
|
||||
- opened
|
||||
- edited
|
||||
- synchronize
|
||||
|
||||
jobs:
|
||||
main:
|
||||
if: github.repository == 'nuxt/nuxt'
|
||||
runs-on: ubuntu-latest
|
||||
name: Semantic pull request
|
||||
steps:
|
||||
- name: Validate PR title
|
||||
uses: amannn/action-semantic-pull-request@v5
|
||||
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 }}
|
Loading…
Reference in New Issue
Block a user