Skip to content

Commit 5966159

Browse files
committed
ci: enforce semantic PR title validation
Add amannn/action-semantic-pull-request to validate PR titles follow Conventional Commits with types restricted to feat, fix, and chore.
1 parent 440ec4e commit 5966159

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/pr.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,24 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v6
1818
- uses: webiny/action-conventional-commits@v1.3.1
19+
20+
semantic-pr-title:
21+
name: Semantic PR Title
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: amannn/action-semantic-pull-request@v5
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27+
with:
28+
types: |
29+
feat
30+
fix
31+
chore
32+
requireScope: false
33+
subjectPattern: ^(?![A-Z]).+$
34+
subjectPatternError: |
35+
The subject "{subject}" found in the pull request title "{title}"
36+
did not match the configured pattern. Please ensure that the subject
37+
does not start with an uppercase character.
38+
wip: true
39+
validateSingleCommit: false

0 commit comments

Comments
 (0)