Skip to content

Commit 2b1bac4

Browse files
committed
ci: Add Commit Lint
The automatic releases use commit messages to generate the release notes. This ensures the commits are correctly formmated to align with it.
1 parent 6ef1509 commit 2b1bac4

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/commitlint.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Lint Commit Messages
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
commitlint:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
with:
12+
fetch-depth: 0
13+
- uses: wagoid/commitlint-github-action@v5

commitlint.config.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
const Configuration = {
2+
extends: ['@commitlint/config-conventional'],
3+
rules: {
4+
'subject-case': [1, 'never'],
5+
},
6+
}
7+
8+
module.exports = Configuration

0 commit comments

Comments
 (0)