ci: enforce conventional PR titles (#415)

## Summary
- add PR title workflow using semantic pull request action
- allow conventional commit types used by release-it changelog
generation

## Verification
- parsed workflow YAML locally with Ruby
This commit is contained in:
Víctor Falcón 2026-05-22 08:02:23 +01:00 committed by GitHub
parent 91b375296d
commit a00c73ac1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 34 additions and 0 deletions

34
.github/workflows/pr-title.yml vendored Normal file
View File

@ -0,0 +1,34 @@
name: PR title
on:
pull_request:
types: [opened, edited, synchronize, reopened, ready_for_review]
jobs:
semantic-pr-title:
name: Conventional PR title
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- name: Validate PR title
uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
types: |
feat
fix
chore
docs
style
refactor
perf
test
build
ci
revert
requireScope: false
subjectPattern: ^(?![A-Z]).+$
subjectPatternError: |
Subject must not start with uppercase. Use: feat: add checkout, fix(billing): handle retry.