Skip to content

Commit

Permalink
ci: Add Conventional Commit Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
arielvalentin committed Jan 17, 2024
1 parent e716f46 commit 0a4b299
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/commit-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Lint Commit Messages
on:
pull_request:
types:
- opened
- synchronize
- reopened
- edited

permissions:
contents: read
pull-requests: read

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: wagoid/commitlint-github-action@v5.4.5
14 changes: 14 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'subject-case': [
2,
'never',
[
'upper-case',
'pascal-case',
'start-case',
]
]
}
};

0 comments on commit 0a4b299

Please sign in to comment.