Skip to content

Commit 8e176a0

Browse files
walterchrisChriMarMe
authored andcommitted
feat: add commitlint linter
Signed-off-by: Christian Walter <christian.walter@9elements.com>
1 parent d351175 commit 8e176a0

2 files changed

Lines changed: 29 additions & 2 deletions

File tree

.commitlintrc.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Configuration for commitlint
2+
---
3+
# Basic set of roules taken from https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/config-conventional
4+
extends:
5+
- "@commitlint/config-conventional"
6+
# Override type-enum to just use types, which are relevant to this project
7+
rules:
8+
type-enum:
9+
- 2
10+
- always
11+
- - build
12+
- chore
13+
- ci
14+
- docs
15+
- feat
16+
- fix
17+
- refactor
18+
- revert
19+
- test

.github/workflows/golangci-lint.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: golangci-lint
1+
name: linter
22
on:
33
push:
44
tags:
@@ -17,4 +17,12 @@ jobs:
1717
uses: golangci/golangci-lint-action@v4
1818
with:
1919
version: latest
20-
working-directory: pkg
20+
working-directory: pkg
21+
22+
commitlint:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v4
26+
with:
27+
fetch-depth: 0
28+
- uses: wagoid/commitlint-github-action@v5

0 commit comments

Comments
 (0)