Skip to content

Commit

Permalink
ci(action): add commitlint on push main and PRs (#28)
Browse files Browse the repository at this point in the history
Signed-off-by: gacallea <3269984+gacallea@users.noreply.github.com>

---------

Signed-off-by: gacallea <3269984+gacallea@users.noreply.github.com>
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
  • Loading branch information
andreacfromtheapp and mergify[bot] authored Aug 10, 2024
1 parent 7caf55f commit ea6064f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/commitlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Commitlint

on:
push:
branches: ["main"]
pull_request:

jobs:
commitlint:
runs-on: ubuntu-latest
name: Commitlint
steps:
- name: Run commitlint
uses: opensource-nepal/commitlint@v1
8 changes: 3 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,10 @@ repos:
hooks:
- id: markdownlint

- repo: https://github.com/compilerla/conventional-pre-commit
rev: v3.4.0
- repo: https://github.com/opensource-nepal/commitlint
rev: v1
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: []
- id: commitlint

# - repo: https://github.com/AndrejOrsula/pre-commit-cargo
# rev: 0.3.0
Expand Down

0 comments on commit ea6064f

Please sign in to comment.