chore: add commitlint workflow (#9409)

* chore: add commitlint workflow

* chore: exit 1 on fail

* chore: use builtin helpurl
This commit is contained in:
Maribeth Moffatt
2025-10-08 16:40:14 -07:00
committed by GitHub
parent d97fa95edc
commit 40d72a3881
4 changed files with 866 additions and 5 deletions

View File

@@ -3,8 +3,28 @@ on:
types:
- opened
- edited
name: conventional-release-labels
name: commit lint & label
jobs:
lint:
runs-on: ubuntu-latest
permissions:
pull-requests: read
contents: read
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: npm
- name: Install dependencies
run: npm ci
- name: Check PR title
id: check-pr-title
run: echo "${{ github.event.pull_request.title }}" | npx commitlint --verbose
label:
runs-on: ubuntu-latest
permissions: