Skip to content
This repository was archived by the owner on Apr 17, 2024. It is now read-only.

Commit 273d53e

Browse files
author
Zuhair AlSader
authored
ci: add commitlint (#16)
1 parent 7099a14 commit 273d53e

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.commitlintrc.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"extends": [
3+
"@commitlint/config-conventional"
4+
],
5+
"rules": {
6+
"type-enum": [
7+
2,
8+
"always",
9+
[
10+
"build",
11+
"chore",
12+
"ci",
13+
"docs",
14+
"feat",
15+
"fix",
16+
"perf",
17+
"refactor",
18+
"revert",
19+
"style",
20+
"test"
21+
]
22+
]
23+
}
24+
}

.github/workflows/commitlint.yml

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

0 commit comments

Comments
 (0)