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
44 changes: 44 additions & 0 deletions .github/workflows/Enforce-Semantic-PR-Title.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Enforce Semantic PR Title

on:
pull_request_target:
branches:
- main
types:
- opened
- edited
- synchronize
- reopened

permissions:
pull-requests: read

jobs:
semantic-pr-check:
name: Validate PR Title (Conventional Commits)
runs-on: ubuntu-latest
steps:
- name: Check PR Title Standard
uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
# پیشوندهای مجاز در کل سازمان
types: |
feat
fix
perf
refactor
docs
style
test
build
ci
chore
revert
requireScope: false
subjectPattern: ^(?![A-Z]).+$
subjectPatternError: |
The subject "{subject}" found in the pull request title "{title}"
must start with a lowercase letter.
Example: "feat(auth): add jwt token validation" or "fix: resolve memory leak"
Loading