Skip to content

fix: Test cli pr title #67

fix: Test cli pr title

fix: Test cli pr title #67

name: Pull Request Title Check
on:
pull_request:
branches: [master, main]
jobs:
check-pr-title:
name: Pull Request Title Check
env:
TITLE: ${{ github.event.pull_request.title }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
- name: Install Dependencies
run: npm ci
- name: Verify Github PR Title
run: echo $TITLE | npx commitlint
- name: Verify Git Commit Name
run: git log -1 --pretty=format:"%s" | npx commitlint