Skip to content

Commit

Permalink
ci(commitlint): add initial commitlint config for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
kutsan committed Jun 8, 2021
1 parent 0ca387e commit c0826e2
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: commitlint

on: pull_request

jobs:
commitlint:
name: commitlint
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 16.x

- name: Install dependencies
run: npm install

- name: Lint commit messages
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose

0 comments on commit c0826e2

Please sign in to comment.