https://github.com/brawl345/git-telegram-webhook
Receives GitHub webhook events and sends a formatted message to a Telegram chat
https://github.com/brawl345/git-telegram-webhook
git github golang telegram webhook
Last synced: 2 months ago
JSON representation
Receives GitHub webhook events and sends a formatted message to a Telegram chat
- Host: GitHub
- URL: https://github.com/brawl345/git-telegram-webhook
- Owner: Brawl345
- License: mit
- Created: 2024-05-22T16:12:42.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-22T17:04:06.000Z (about 1 year ago)
- Last Synced: 2025-01-30T02:43:37.713Z (4 months ago)
- Topics: git, github, golang, telegram, webhook
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Git Telegram Webhook
Simple Go web server that receives GitHub webhook events and sends a formatted message to a Telegram chat. Designed for
use on [Vercel](https://vercel.com/docs/functions/runtimes/go).## Supported Webhook Events
- [`ping`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#ping)
- [`push`](https://docs.github.com/en/webhooks/webhook-events-and-payloads#push)## Setup
1. Fork the repository to your GitHub account.
2. Create a new Vercel project and import the forked repository.
3. Set the required environment variables (see the table below) in the Vercel project settings.| Environment Variable | Description |
|-------------------------|------------------------------------------------------------------------------|
| `TELEGRAM_BOT_TOKEN` | The API token for your Telegram bot. |
| `GITHUB_WEBHOOK_SECRET` | The secret key used to verify the integrity of GitHub webhook payloads. |
| `PORT` | The port to listen on. Defaults to `8080`. Only relevant for testing locally |For debugging purposes, you can set "DANGEROUS_SKIP_GITHUB_WEBHOOK_SECRET_CHECK"