Skip to content

chore: Fix package ci with shorter badge names. #18

chore: Fix package ci with shorter badge names.

chore: Fix package ci with shorter badge names. #18

jobs:
lint-title:
runs-on: ubuntu-latest
steps:
- name: Check PR Title for Conventional Commit Format
run: |
if ! echo "${{ github.event.pull_request.title }}" | grep -Pq "^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\(\w+\))?!?:\s.*"; then
echo "The title does not conform to the Conventional Commit."
echo "Please refer to 'https://www.conventionalcommits.org/'"
exit 1
fi
name: Lint pull request title
on:
pull_request:
types:
- opened
- synchronize
- reopened
- edited