Skip to content
Merged
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
42 changes: 42 additions & 0 deletions .github/workflows/pr-quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: PR Quality Checks

on:
pull_request:
types:
- opened
- edited
- reopened
- synchronize

jobs:
validate-title:
name: Validate PR Title
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- name: Check PR title follows Conventional Commit format
uses: amannn/action-semantic-pull-request@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# Configure allowed types (based on conventional commits)
types: |
feat
fix
docs
style
refactor
perf
test
build
ci
chore
revert
# Don't require a scope (e.g., "feat(<scope>): ...")
requireScope: false
# Don't allow subject to start with uppercase letter
subjectPattern: ^(?![A-Z]).+$
subjectPatternError: |
The subject (description) should start with a lowercase letter.
Example: "feat(api): add new endpoint" (not "feat(api): Add new endpoint")
Loading