Skip to content

Commit c6cc782

Browse files
DennisOSRMCopilot
andcommitted
ci: add conventional commits PR title validation
Add GitHub Actions workflow to enforce conventional commit format for pull request titles, ensuring consistent commit message standards across the project. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 1b0c131 commit c6cc782

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Conventional Commits
2+
3+
on:
4+
pull_request:
5+
types: [opened, edited, synchronize, reopened]
6+
7+
jobs:
8+
validate-pr-title:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Validate PR title
12+
uses: amannn/action-semantic-pull-request@v5
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15+
with:
16+
requireScope: false
17+
disallowScopes: []
18+
types: |
19+
feat
20+
fix
21+
docs
22+
style
23+
refactor
24+
perf
25+
test
26+
chore
27+
ci
28+
revert

0 commit comments

Comments
 (0)