Skip to content

Commit 5a14759

Browse files
committed
chore: add pr lints workflow
1 parent 00834a1 commit 5a14759

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/pr-lints.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: pr-lints
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
- edited
8+
- synchronize
9+
10+
jobs:
11+
semantic-title:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: amannn/action-semantic-pull-request@v4
15+
with:
16+
subjectPattern: ^[a-z].+$
17+
subjectPatternError: |
18+
The subject "{subject}" found in the pull request title "{title}" should start with a lowercase.
19+
env:
20+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)