Skip to content

Commit 4d1343e

Browse files
committed
chore: add commitlint
1 parent 0b9570e commit 4d1343e

File tree

4 files changed

+1431
-64
lines changed

4 files changed

+1431
-64
lines changed

.github/workflows/commitlint.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Lint commit messages
2+
on: [pull_request]
3+
4+
jobs:
5+
commitlint:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
9+
- uses: wagoid/commitlint-github-action@5ce82f5d814d4010519d15f0552aec4f17a1e1fe # v5

commitlint.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
extends: ['@commitlint/config-conventional'],
3+
ignores: [message => message.startsWith('chore(release):')]
4+
};

0 commit comments

Comments
 (0)