Skip to content

refactor(sickle): API cleanup and canonical format printer #193

refactor(sickle): API cleanup and canonical format printer

refactor(sickle): API cleanup and canonical format printer #193

Workflow file for this run

name: Lint PR Title
on:
pull_request:
types: [opened, synchronize, reopened, edited]
jobs:
pr-title-lint:
name: Validate PR title (for squash merge)
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- name: Checkout repository
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # ratchet:actions/checkout@v5
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # ratchet:actions/setup-node@v4
with:
node-version: '22'
- name: Install commitlint
run: |
npm install --save-dev @commitlint/config-conventional @commitlint/cli
- name: Validate PR title
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
echo "$PR_TITLE" | npx commitlint --config .commitlintrc.json