mirror of
https://github.com/davila7/claude-code-templates.git
synced 2026-09-19 01:30:23 +08:00
5d29ab3d83
Hook that sends Telegram notification when a new PR is created via `gh pr create`, including the PR URL and Vercel preview URL. Files added: - cli-tool/components/hooks/automation/telegram-pr-webhook.json (component) - cli-tool/components/hooks/automation/telegram-pr-webhook.py (component script) - .claude/settings.json (project hook config) - .claude/hooks/telegram-pr-webhook.py (project hook script) - .gitignore updated to track the hook script Uses TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID environment variables. https://claude.ai/code/session_013aBUK67VEy9Q2MaUGUVRJQ Co-authored-by: Claude <noreply@anthropic.com>
18 lines
605 B
JSON
18 lines
605 B
JSON
{
|
|
"description": "Send Telegram notification when a new PR is created via gh pr create. Includes PR URL and Vercel preview URL. Requires TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID environment variables. Optionally set VERCEL_PROJECT_NAME and VERCEL_TEAM_SLUG to construct the Vercel preview URL automatically.",
|
|
"hooks": {
|
|
"PostToolUse": [
|
|
{
|
|
"matcher": "Bash",
|
|
"hooks": [
|
|
{
|
|
"type": "command",
|
|
"command": "python3 \"$CLAUDE_PROJECT_DIR\"/.claude/hooks/telegram-pr-webhook.py",
|
|
"timeout": 30
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|