Files
davila7__claude-code-templates/cli-tool/components/hooks/automation/telegram-pr-webhook.json
Daniel Avila 5d29ab3d83 Add telegram-pr-webhook hook for PR creation notifications (#342)
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>
2026-02-07 20:29:57 -05:00

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
}
]
}
]
}
}