Skip to content

Commit

Permalink
ci: add commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
tillywoodfield committed May 15, 2024
1 parent bede998 commit cd4bedd
Show file tree
Hide file tree
Showing 3 changed files with 971 additions and 0 deletions.
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: Commitlint
on: [pull_request]

jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: Install dependencies
run: npm ci
- name: Lint commit messages
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
Loading

0 comments on commit cd4bedd

Please sign in to comment.