Skip to content

Commit

Permalink
chore(pipeline): add commitlint commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
bj00rn committed Nov 15, 2023
1 parent 2d7162c commit 9994657
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5
with:
configFile: "./.github/commitlint.config.js"
configFile: "../.github/commitlint.config.js"

pre-commit:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v5
with:
configFile: "./.github/commitlint.config.js"
configFile: "../.github/commitlint.config.js"

pre-commit:
runs-on: ubuntu-latest
Expand Down
12 changes: 9 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 23.1.0
rev: 23.11.0
hooks:
- id: black
language_version: python3
Expand All @@ -9,7 +9,7 @@ repos:
hooks:
- id: isort
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: trailing-whitespace
- id: check-ast
Expand All @@ -30,4 +30,10 @@ repos:
- repo: https://gitlab.com/bmares/check-json5
rev: v1.0.0
hooks:
- id: check-json5
- id: check-json5
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.8.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ['@commitlint/config-conventional']
File renamed without changes.

0 comments on commit 9994657

Please sign in to comment.