Skip to content

Commit a529a8d

Browse files
committed
chore: add commitlint
1 parent a6bbac5 commit a529a8d

File tree

3 files changed

+5926
-2633
lines changed

3 files changed

+5926
-2633
lines changed

.github/workflows/commitlint.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: commitlint
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
commitlint:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v3
11+
- uses: actions/setup-node@v3
12+
with:
13+
node-version: 18
14+
cache: npm
15+
16+
- run: npm ci
17+
- run: 'echo "${PR_TITLE}" | npx commitlint'
18+
env:
19+
PR_TITLE: ${{ github.event.pull_request.title }}

0 commit comments

Comments
 (0)