mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-09-23 02:53:15 +08:00
chore: adding commitlint
This commit is contained in:
parent
29c26777b6
commit
3f32322385
14
.github/workflows/commitlint.yml
vendored
Normal file
14
.github/workflows/commitlint.yml
vendored
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
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
|
Loading…
x
Reference in New Issue
Block a user