Skip to content

Commit

Permalink
feat: add commitlint linter
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Walter <[email protected]>
  • Loading branch information
walterchris authored and ChriMarMe committed Feb 15, 2024
1 parent d351175 commit 8e176a0
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .commitlintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Configuration for commitlint
---
# Basic set of roules taken from https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/config-conventional
extends:
- "@commitlint/config-conventional"
# Override type-enum to just use types, which are relevant to this project
rules:
type-enum:
- 2
- always
- - build
- chore
- ci
- docs
- feat
- fix
- refactor
- revert
- test
12 changes: 10 additions & 2 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: golangci-lint
name: linter
on:
push:
tags:
Expand All @@ -17,4 +17,12 @@ jobs:
uses: golangci/golangci-lint-action@v4
with:
version: latest
working-directory: pkg
working-directory: pkg

commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5

0 comments on commit 8e176a0

Please sign in to comment.