mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-06-05 14:24:20 +00:00
38 lines
915 B
YAML
38 lines
915 B
YAML
name: PR Title Check
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, edited, synchronize, reopened]
|
|
|
|
permissions:
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
check-title:
|
|
name: Conventional Commit Title
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check PR title follows Conventional Commits
|
|
uses: amannn/action-semantic-pull-request@v5
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
types: |
|
|
feat
|
|
fix
|
|
perf
|
|
refactor
|
|
docs
|
|
chore
|
|
test
|
|
ci
|
|
revert
|
|
requireScope: false
|
|
subjectPattern: ^.+$
|
|
subjectPatternError: |
|
|
The PR title "{title}" must have a description after the type/scope prefix.
|
|
Example: "feat: add new login flow" or "fix(auth): handle null token"
|
|
wip: true
|
|
validateSingleCommit: false
|