Skip to content

chore: add commitlint to PR titles and commits #4

chore: add commitlint to PR titles and commits

chore: add commitlint to PR titles and commits #4

Workflow file for this run

name: PR Title
on:
pull_request:
types:
- opened
- edited
- synchronize
- reopened
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: .nvmrc
cache: 'npm'
- run: npm ci
- name: Lint PR title
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
echo "$PR_TITLE" | npx --no-install commitlint --verbose