Skip to content

Commit 0229246

Browse files
CI: Check PR titles using commitlint (#31)
1 parent e64527a commit 0229246

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
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: Check PR titles using commitlint
2+
3+
on:
4+
pull_request:
5+
types: [edited, opened, reopened, synchronize]
6+
7+
jobs:
8+
check-pr-title:
9+
name: Check PR title
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@master
13+
- uses: actions/setup-node@v2
14+
with:
15+
node-version: '14'
16+
- run: npm install -g --force commitlint @commitlint/cli commitlint-plugin-cleanfeet
17+
- run: npm install conventional-changelog-conventionalcommits
18+
- run: touch .git/COMMIT_EDITMSG
19+
- run: echo ${{ github.event.pull_request.title }} | commitlint

0 commit comments

Comments
 (0)