Skip to content

Commit

Permalink
ci: add commitlint check
Browse files Browse the repository at this point in the history
Add workaround for tsconfig issue with commitlint, see
wagoid/commitlint-github-action#560 (comment)

Signed-off-by: Alexander Trost <[email protected]>
  • Loading branch information
galexrt committed Apr 21, 2023
1 parent 147ff45 commit f1986b4
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"type-enum": [
2,
"always",
[
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"gen",
"helm",
"perf",
"refactor",
"revert",
"style",
"test",
"query",
"db",
"proto",
"services",
"auth",
"citizenstore",
"completor",
"dmv",
"docstore",
"jobs",
"livemap",
"livemapper",
"notificator",
"rector",
"version"
]
]
}
}
17 changes: 17 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Lint Commit Messages
on:
pull_request:

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- run: rm tsconfig.json

- uses: wagoid/commitlint-github-action@v5
with:
configFile: "./.commitlintrc.json"

0 comments on commit f1986b4

Please sign in to comment.