Skip to content

ci(mergify): upgrade configuration to current format #516

ci(mergify): upgrade configuration to current format

ci(mergify): upgrade configuration to current format #516

Workflow file for this run

name: PR Title Check
on:
pull_request:
types: [opened, edited, synchronize]
jobs:
title:
name: Check PR title
runs-on: ubuntu-latest
steps:
- name: Validate title
env:
TITLE: ${{ github.event.pull_request.title }}
# Conventional Commits: type(scope?): description
# Allowed types: feat, fix, docs, style, refactor, perf, test, chore, build, ci, revert
PATTERN: '^(feat|fix|docs|style|refactor|perf|test|chore|build|ci|revert)(\([a-z0-9-]+\))?!?:\s+.+'
run: |
if echo "$TITLE" | grep -qE "$PATTERN"; then
echo "✅ PR title OK: $TITLE"
else
echo "::error::Invalid PR title! Must follow Conventional Commits format."
echo ""
echo "✅ Examples:"
echo " feat(memory): add branch support"
echo " fix(embedding): correct dimension mismatch on local provider"
echo " docs: update quick start guide"
echo " ci: add static checks workflow"
echo ""
echo "❌ Your title: '$TITLE'"
echo ""
echo "📚 Learn more: https://www.conventionalcommits.org"
exit 1
fi