mirror of
https://github.com/jtheoof/swappy.git
synced 2024-10-04 02:17:53 +03:00
chore(ci): add commitlint for pull_requests
This commit is contained in:
parent
177c2d45fa
commit
24d30d8106
3
.commitlintrc.yml
Normal file
3
.commitlintrc.yml
Normal file
@ -0,0 +1,3 @@
|
||||
---
|
||||
extends:
|
||||
- "@commitlint/config-conventional"
|
18
.github/workflows/lint.yml
vendored
Normal file
18
.github/workflows/lint.yml
vendored
Normal file
@ -0,0 +1,18 @@
|
||||
name: Lint
|
||||
on: [pull_request]
|
||||
|
||||
jobs:
|
||||
commitlint:
|
||||
runs-on: ubuntu-20.04
|
||||
name: "Commit"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- uses: wagoid/commitlint-github-action@v1
|
||||
with:
|
||||
configFile: "./.commitlintrc.yml"
|
||||
firstParent: false
|
||||
failOnWarnings: true
|
Loading…
Reference in New Issue
Block a user