Skip to content

Commit f1986b4

Browse files
committed
ci: add commitlint check
Add workaround for tsconfig issue with commitlint, see wagoid/commitlint-github-action#560 (comment) Signed-off-by: Alexander Trost <[email protected]>
1 parent 147ff45 commit f1986b4

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.commitlintrc.json

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
"gen",
17+
"helm",
18+
"perf",
19+
"refactor",
20+
"revert",
21+
"style",
22+
"test",
23+
"query",
24+
"db",
25+
"proto",
26+
"services",
27+
"auth",
28+
"citizenstore",
29+
"completor",
30+
"dmv",
31+
"docstore",
32+
"jobs",
33+
"livemap",
34+
"livemapper",
35+
"notificator",
36+
"rector",
37+
"version"
38+
]
39+
]
40+
}
41+
}

.github/workflows/commitlint.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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+
- run: rm tsconfig.json
14+
15+
- uses: wagoid/commitlint-github-action@v5
16+
with:
17+
configFile: "./.commitlintrc.json"

0 commit comments

Comments
 (0)