Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Commit

Permalink
ci: add commitlint (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
zalsader authored Nov 10, 2023
1 parent abee6c2 commit 094d9d6
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"extends": ["@commitlint/config-conventional"],
"rules": {
"type-enum": [
2,
"always",
[
"build",
"busybot",
"chore",
"ci",
"cd",
"docs",
"feat",
"fix",
"flux",
"perf",
"refactor",
"revert",
"style",
"test"
]
]
}
}
15 changes: 15 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Lint Commit Messages
on:
pull_request:

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: wagoid/commitlint-github-action@v5
with:
configFile: "./.commitlintrc.json"

0 comments on commit 094d9d6

Please sign in to comment.