Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/pr-title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: PR Title Conventional Commits

on:
pull_request:
branches: [main]
types: [opened, edited, synchronize, reopened]

jobs:
validate-pr-title:
runs-on: ubuntu-latest
permissions:
pull-requests: read
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
docs
style
refactor
perf
test
build
ci
chore
revert
requireScope: false
subjectPattern: ^[a-z].+$
subjectPatternError: |
The subject "{subject}" must start with a lowercase letter.
ignoreLabels: |
bot
dependencies
Loading