name: Commit Lint
on:
pull_request:
types: [opened, synchronize, reopened, edited, ready_for_review]
jobs:
lint-pr-title:
name: Lint PR Title
runs-on: ubuntu-latest
if: github.event.pull_request.draft != true
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f with:
node-version: 22
- name: Install commitlint
run: npm install -g @commitlint/cli @commitlint/config-conventional
- name: Validate PR title as commit message
run: echo "${{ github.event.pull_request.title }}" | commitlint