Commit 3f323223 authored by Ankit Nayan's avatar Ankit Nayan
Browse files

chore: adding commitlint

parent 29c26777
Showing with 14 additions and 0 deletions
+14 -0
name: commitlint
on: [pull_request]
jobs:
lint-commits:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.1
with:
# we actually need "github.event.pull_request.commits + 1" commit
fetch-depth: 0
- uses: actions/setup-node@v2.1.0
# or just "yarn" if you depend on "@commitlint/cli" already
- run: yarn add @commitlint/cli
- run: yarn run commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment