22 lines
481 B
YAML
22 lines
481 B
YAML
name: Lint PR
|
|
|
|
on:
|
|
pull_request:
|
|
branches: ["main"]
|
|
|
|
jobs:
|
|
commitlint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: lts/*
|
|
|
|
- run: npm install -D @commitlint/cli @commitlint/config-conventional
|
|
|
|
- run: npx commitlint --from ${{ gitea.event.pull_request.base.sha }} --to ${{ gitea.event.pull_request.head.sha }} --verbose
|