opencrates 3.0.1

Enterprise-grade AI-powered Rust development companion with comprehensive automation, monitoring, and deployment capabilities
#!/bin/bash
# Git commit message hook for OpenCrates
# Ensures professional commit messages following conventional commits

commit_regex='^(feat|fix|docs|style|refactor|test|chore|perf|ci|build|revert)(\(.+\))?: .{1,50}'

if ! grep -qE "$commit_regex" "$1"; then
    echo "Invalid commit message format!"
    echo "Format: <type>(<scope>): <subject>"
    echo ""
    echo "Types: feat, fix, docs, style, refactor, test, chore, perf, ci, build, revert"
    echo "Example: feat(cli): add aichat integration support"
    exit 1
fi

# No emojis allowed
if grep -q '[[:emoji:]]' "$1"; then
    echo "Error: Commit messages must not contain emojis"
    exit 1
fi