Skip to content

ci: check pr title with commitlint #8

ci: check pr title with commitlint

ci: check pr title with commitlint #8

Workflow file for this run

name: pr-title-lint
on:
pull_request:
branches:
- main
types:
- opened
- synchronize
- edited
jobs:
pr-title-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
node-version-file: .nvmrc
- run: npm ci
- name: Lint PR title
run: echo "${PR_TITLE}" | npx commitlint
env:
PR_TITLE: ${{ github.event.pull_request.title }}