https://github.com/seanghay/serve-github-webhook
Send GitHub Webhook events to Telegram
https://github.com/seanghay/serve-github-webhook
github-webhooks octokit telegram telegram-bot
Last synced: 3 months ago
JSON representation
Send GitHub Webhook events to Telegram
- Host: GitHub
- URL: https://github.com/seanghay/serve-github-webhook
- Owner: seanghay
- License: apache-2.0
- Created: 2022-06-24T05:54:21.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-24T16:35:31.000Z (about 3 years ago)
- Last Synced: 2025-01-22T20:11:17.402Z (5 months ago)
- Topics: github-webhooks, octokit, telegram, telegram-bot
- Language: JavaScript
- Homepage:
- Size: 62.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# Serve GitHub Webhooks
An HTTP server for handling GitHub Webhooks event to Telegram Chat/Group/Channel.
## Features
- Using Markdown & Handlebars template engine for building messages.
- File-based GitHub events (`src/events/issues/closed.md` will be `issues.closed`)### Deployment
Environment variables
```env
NTBA_FIX_319=1
NODE_ENV=development
PORT=8080
GH_WEBHOOK_SECRET=my_secret
TG_BOT_TOKEN=1234:xxx
TG_CHAT_ID=1234# EventSource Debugging URL
DEBUG_EVENT_SOURCE_URL=
```## Docker Compose
```yml
version: '3'services:
app:
image: ghcr.io/seanghay/serve-github-webhook:main
restart: unless-stopped
ports:
- "127.0.0.1:8088:8080"
env_file:
- .env
```## API Endpoint
```toml
[api]
url = "http://localhost:8080/api/github/webhooks"
method = "POST"
```---
# Snapshots
## issue_comment
### action: `created`
đŦ **Codertocat** commented on an issue in `Hello-World`.
**Spelling error in the README file**
You are totally right! I'll get this fixed right away.
[View on GitHub](https://github.com/Codertocat/Hello-World/issues/1#issuecomment-492700400)
---
### action: `created`
đŦ **Codertocat** commented on an issue in `Hello-World`.
**Spelling error in the README file**
You are totally right! I'll get this fixed right away.
[View on GitHub](https://github.com/Codertocat/Hello-World/issues/1#issuecomment-492700400)
---
### action: `created`
đŦ **Codertocat** commented on an issue in `Hello-World`.
**Spelling error in the README file**
You are totally right! I'll get this fixed right away.
[View on GitHub](https://github.com/Codertocat/Hello-World/issues/1#issuecomment-492700400)
---
### action: `created`
đŦ **Codertocat** commented on an issue in `Hello-World`.
**Spelling error in the README file**
You are totally right! I'll get this fixed right away.
[View on GitHub](https://github.com/Codertocat/Hello-World/issues/1#issuecomment-492700400)
---
## issues
### action: `opened`
đ **Codertocat** opened đ¤ an issue in `Hello-World`.
**Spelling error in the README file**
[View on GitHub](https://github.com/Codertocat/Hello-World/issues/1)
---
### action: `opened`
đ **Codertocat** opened đ¤ an issue in `Hello-World`.
**Spelling error in the README file**
[View on GitHub](https://github.com/Codertocat/Hello-World/issues/1)
---
### action: `opened`
đ **Codertocat** opened đ¤ an issue in `Hello-World`.
**Spelling error in the README file**
[View on GitHub](https://github.com/Codertocat/Hello-World/issues/1)
---
### action: `opened`
đ **Codertocat** opened đ¤ an issue in `Hello-World`.
**Spelling error in the README file**
[View on GitHub](https://github.com/Codertocat/Hello-World/issues/1)
---
## issues
### action: `reopened`
đ **Codertocat** reopened đ¤ an issue in `Hello-World`.
**Spelling error in the README file**
[View on GitHub](https://github.com/Codertocat/Hello-World/issues/1)
---
## package
### action: `published`
đĻ A new package has published
---
## pull_request
### action: `opened`
âšī¸ **Codertocat** open a pull request in `Hello-World`.
**Update the README with new information.**
This is a pretty simple change that we need to pull into master.[View on GitHub](https://github.com/Codertocat/Hello-World/pull/2)
---
### action: `opened`
âšī¸ **Codertocat** open a pull request in `Hello-World`.
**Update the README with new information.**
[View on GitHub](https://github.com/Codertocat/Hello-World/pull/2)
---
### action: `opened`
âšī¸ **Codertocat** open a pull request in `Hello-World`.
**Update the README with new information.**
This is a pretty simple change that we need to pull into master.[View on GitHub](https://github.com/Codertocat/Hello-World/pull/2)
---
## release
### action: `created`
đ **Codertocat** created a release **** `Hello-World`
[View on GitHub](https://github.com/Codertocat/Hello-World/releases/tag/0.0.1)
---
### action: `created`
đ **Codertocat** created a release **** `Hello-World`
[View on GitHub](https://github.com/Codertocat/Hello-World/releases/tag/0.0.1)
---
### action: `created`
đ **Codertocat** created a release **** `Hello-World`
[View on GitHub](https://github.com/Codertocat/Hello-World/releases/tag/0.0.1)
---
## release
### action: `edited`
đ **Codertocat** edit a release **** `Hello-World`
[View on GitHub](https://github.com/Codertocat/Hello-World/releases/tag/0.0.1)
---
### action: `edited`
đ **Codertocat** edit a release **** `Hello-World`
[View on GitHub](https://github.com/Codertocat/Hello-World/releases/tag/0.0.1)
---
## repository
### action: `created`
đĻ **Codertocat** created a **public** repository [Octocoders/Hello-World](https://github.com/Octocoders/Hello-World)
[View on GitHub](https://github.com/Octocoders/Hello-World)
---
### action: `created`
đĻ **Codertocat** created a **public** repository [Octocoders/Hello-World](https://github.com/Octocoders/Hello-World)
[View on GitHub](https://github.com/Octocoders/Hello-World)
---