Skip to content
name: Pull Request Title Check
on:
pull_request:
branches: [master, main]
jobs:
check-pr-title:
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