Skip to content

Commit

Permalink
chore: add config for commitlint to handle dependabot commits (#109)
Browse files Browse the repository at this point in the history
Issue: #102
  • Loading branch information
pimg authored Aug 29, 2024
1 parent d06f63e commit 9f97fe8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: commit-linter
on:
push:
branches-ignore:
- main

permissions:
contents: read
pull-requests: read

jobs:
commitlint:
name: commit-lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: wagoid/commitlint-github-action@v6
if: ${{ github.actor != 'dependabot[bot]' }}
name: commit linter
7 changes: 2 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: linters
name: golang-linter
on:
push:

Expand All @@ -16,7 +16,4 @@ jobs:
with:
go-version: stable
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
- uses: wagoid/commitlint-github-action@v6
if: ${{ github.actor != 'dependabot[bot]' }}
name: commit linter
uses: golangci/golangci-lint-action@v6

0 comments on commit 9f97fe8

Please sign in to comment.