Files
kandev/.github/workflows/pr-title.yml
T
2026-08-07 22:31:00 +01:00

42 lines
1.1 KiB
YAML

name: pr-title
on:
pull_request:
types: [opened, edited, synchronize, reopened]
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
pull-requests: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Validate PR title follows Conventional Commits
uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Allowed conventional commit types (must match cliff.toml commit_parsers)
types: |
feat
fix
perf
refactor
docs
chore
ci
test
release
# Require lowercase subject
subjectPattern: ^[a-z].*$
subjectPatternError: |
The PR title subject must start with a lowercase letter.
Example: "feat: add release notes dialog"
# Do not require a scope
requireScope: false