Hook#buildwithclaude
0
Slack detailed notifications
Oturum bilgileri ve zengin bloklarla ayrıntılı Slack bildirimleri gönderin
yazan kuscubasiece·8 Eylül 2026
Kaynak: davepoon/claude-code-subagents-collection · MIT
Oturum bilgileri ve zengin bloklarla ayrıntılı Slack bildirimleri gönderin
Kaynak: davepoon/claude-code-subagents-collection · MIT
curl -sL https://www.antrophiclove.com/api/kaynak/slack-detailed-notifications/rawBu içerik mevcut dosyaya elle harmanlanmalı: .claude/settings.json
Send detailed Slack notifications with session information and rich blocks
Stop*SLACK_WEBHOOK_URL#!/bin/bash
if [[ -z "$SLACK_WEBHOOK_URL" ]]; then
exit 0
fi
session_id="${CLAUDE_SESSION_ID:-unknown}"
timestamp=$(date '+%Y-%m-%d %H:%M:%S')
payload=$(jq -n \
--arg text "Claude Code Session Complete" \
--arg session "$session_id" \
--arg time "$timestamp" \
'{
"blocks": [
{"type": "header", "text": {"type": "plain_text", "text": $text}},
{"type": "section", "fields": [
{"type": "mrkdwn", "text": ("*Session ID:*\n" + $session)},
{"type": "mrkdwn", "text": ("*Completed:*\n" + $time)}
]}
]
}')
curl -s -X POST "$SLACK_WEBHOOK_URL" \
-H "Content-Type: application/json" \
-d "$payload" >/dev/null 2>&1