Unverified Commit 4c2ebe8d authored by Kip's avatar Kip Committed by GitHub

Merge pull request #981 from Tachi107/ci-conventional-commits

ci: add conventional commits check
parents 4d1c332f d992f35e
# SPDX-FileCopyrightText: 2021 Andrea Pappacoda
#
# SPDX-License-Identifier: Apache-2.0
name: conventional-commits
on: pull_request
jobs:
commitlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: ${{ github.event.pull_request.commits }} + 1
- uses: actions/setup-node@v2
- name: Install commitlint cli
run: |
yarn global add @commitlint/cli @commitlint/config-conventional
echo "module.exports = { extends: ['@commitlint/config-conventional'] }" > commitlint.config.js
- name: Commitlint
run: commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD
Markdown is supported
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