Skip to content

feat: improve Mermaid demo and dark rendering #19

feat: improve Mermaid demo and dark rendering

feat: improve Mermaid demo and dark rendering #19

Workflow file for this run

name: Commit Message
on:
pull_request:
types: [opened, edited, synchronize, reopened]
workflow_dispatch:
permissions:
contents: read
pull-requests: read
jobs:
conventional-title:
name: Conventional PR title
runs-on: ubuntu-latest
steps:
- name: Check PR title
env:
PR_TITLE: ${{ github.event.pull_request.title }}
run: |
pattern='^(feat|fix|docs|style|refactor|perf|test|build|ci|chore|revert)(\([a-z0-9._-]+\))?!?: .+'
if [[ ! "$PR_TITLE" =~ $pattern ]]; then
echo "PR title must follow Conventional Commits."
echo "Actual: $PR_TITLE"
exit 1
fi