Skip to content

Commit

Permalink
ci: add commit-lint workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Ryall committed Dec 28, 2023
1 parent b8724f3 commit fdd0a09
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/commit_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
on: [pull_request]
jobs:
lint-commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: npm install --save-dev @commitlint/{cli,config-conventional}
- run: |
echo "module.exports = { extends: ['@commitlint/config-conventional'] };" > commitlint.config.js
- run: npx commitlint --from HEAD~1 --to HEAD --verbose

0 comments on commit fdd0a09

Please sign in to comment.