Reorder folders based on learning dependencies, complexity, and frequency of use: - 01-slash-commands (unchanged) - Quick wins for beginners - 02-memory (was 03) - Essential foundation - 03-skills (was 05) - Auto-invoked capabilities - 04-subagents (was 02) - Task delegation - 05-mcp (was 04) - External integration - 06-hooks (was 07) - Event automation - 07-plugins (was 06) - Bundled solutions - 08-checkpoints (unchanged) - Safe experimentation - 09-advanced-features (unchanged) - Power user tools Documentation improvements: - Add LEARNING-ROADMAP.md with detailed milestones and exercises - Simplify README.md for better scannability - Consolidate Quick Start and Getting Started sections - Combine Feature Comparison and Use Case Matrix tables - Reorder README sections: Learning Path → Quick Reference → Getting Started - Update all cross-references across module READMEs 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
67 lines
1.8 KiB
Bash
67 lines
1.8 KiB
Bash
#!/bin/bash
|
|
# Send notifications on events
|
|
# Hook: PostPush
|
|
|
|
REPO_NAME=$(basename $(git rev-parse --show-toplevel 2>/dev/null) 2>/dev/null)
|
|
COMMIT_MSG=$(git log -1 --pretty=%B 2>/dev/null)
|
|
AUTHOR=$(git log -1 --pretty=%an 2>/dev/null)
|
|
BRANCH=$(git rev-parse --abbrev-ref HEAD 2>/dev/null)
|
|
|
|
echo "📢 Sending notification to team..."
|
|
|
|
# Slack webhook example (replace with your webhook URL)
|
|
SLACK_WEBHOOK="${SLACK_WEBHOOK_URL:-}"
|
|
|
|
if [ -n "$SLACK_WEBHOOK" ]; then
|
|
curl -X POST "$SLACK_WEBHOOK" \
|
|
-H 'Content-Type: application/json' \
|
|
-d "{
|
|
\"text\": \"New push to *$REPO_NAME*\",
|
|
\"attachments\": [{
|
|
\"color\": \"good\",
|
|
\"fields\": [
|
|
{\"title\": \"Branch\", \"value\": \"$BRANCH\", \"short\": true},
|
|
{\"title\": \"Author\", \"value\": \"$AUTHOR\", \"short\": true},
|
|
{\"title\": \"Commit\", \"value\": \"$COMMIT_MSG\"}
|
|
]
|
|
}]
|
|
}" \
|
|
--silent --output /dev/null
|
|
|
|
echo "✅ Slack notification sent"
|
|
fi
|
|
|
|
# Discord webhook example (replace with your webhook URL)
|
|
DISCORD_WEBHOOK="${DISCORD_WEBHOOK_URL:-}"
|
|
|
|
if [ -n "$DISCORD_WEBHOOK" ]; then
|
|
curl -X POST "$DISCORD_WEBHOOK" \
|
|
-H 'Content-Type: application/json' \
|
|
-d "{
|
|
\"content\": \"**New push to $REPO_NAME**\",
|
|
\"embeds\": [{
|
|
\"title\": \"$COMMIT_MSG\",
|
|
\"color\": 3066993,
|
|
\"fields\": [
|
|
{\"name\": \"Branch\", \"value\": \"$BRANCH\", \"inline\": true},
|
|
{\"name\": \"Author\", \"value\": \"$AUTHOR\", \"inline\": true}
|
|
]
|
|
}]
|
|
}" \
|
|
--silent --output /dev/null
|
|
|
|
echo "✅ Discord notification sent"
|
|
fi
|
|
|
|
# Email notification example
|
|
EMAIL_TO="${TEAM_EMAIL:-}"
|
|
|
|
if [ -n "$EMAIL_TO" ]; then
|
|
echo "New push to $REPO_NAME by $AUTHOR" | \
|
|
mail -s "Git Push: $BRANCH" "$EMAIL_TO"
|
|
|
|
echo "✅ Email notification sent"
|
|
fi
|
|
|
|
exit 0
|