Skip to content

Commit 2134ac9

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 2134ac9

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/pr.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,27 @@ 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+
permissions:
24+
pull-requests: read
25+
statuses: write
26+
steps:
27+
- uses: amannn/action-semantic-pull-request@48f256284bd46cdaab1048c3721360e808335d50 # v6.1.1
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
with:
31+
types: |
32+
feat
33+
fix
34+
chore
35+
requireScope: false
36+
subjectPattern: ^(?![A-Z]).+$
37+
subjectPatternError: |
38+
The subject "{subject}" found in the pull request title "{title}"
39+
did not match the configured pattern. Please ensure that the subject
40+
does not start with an uppercase character.
41+
wip: true
42+
validateSingleCommit: false

0 commit comments

Comments
 (0)