Skip to content

chore: update dependency husky to ^9.1.7 #1097

chore: update dependency husky to ^9.1.7

chore: update dependency husky to ^9.1.7 #1097

Workflow file for this run

name: PR Title Check
on:
pull_request:
types: [opened, edited, synchronize, reopened]
jobs:
conventional_commits:
runs-on: ubuntu-latest
steps:
- name: check title
env:
TITLE: ${{ github.event.pull_request.title }}
run: |
regex="^(feat|fix|docs|chore|style|refactor|perf|test)!?(\([^\)]+\))?:[[:space:]].+"
if [[ "${TITLE}" =~ $regex ]]; then
echo OK
else
echo "::error::Pull Request のタイトルが Conventional Commits 形式にマッチしません"
exit 1
fi