https://github.com/jakbin/gitnews
Github webhooks for Telegram
https://github.com/jakbin/gitnews
github-webhooks telegram telegram-bot telegram-bot-api webhooks
Last synced: 11 months ago
JSON representation
Github webhooks for Telegram
- Host: GitHub
- URL: https://github.com/jakbin/gitnews
- Owner: jakbin
- License: mit
- Created: 2022-02-14T12:26:46.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-04T11:47:43.000Z (almost 4 years ago)
- Last Synced: 2025-01-26T16:15:30.363Z (about 1 year ago)
- Topics: github-webhooks, telegram, telegram-bot, telegram-bot-api, webhooks
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://gitpod.io/#https://github.com/jakbin/GitNews)
# GitNews - Github webhooks for Telegram
## Setup:
### server:
- clone repo
```shell
git clone https://github.com/jakbin/gitnews.git
```
- Set Telegram bot token in `config.py`
or
set with heroku cli
```sh
heroku config:set ENV=True
heroku config:set BOT_TOKEN=Bot_Token
```
- create your app with heroku cli
```shell
heroku create your_app_name
```
- push code
```shell
git push main heroku
```
### Github webhooks:
- Add [Rose Bot](https://t.me/MissRose_bot) bot in you telegram group, send msg /id in group and copy id
- set url with id in github webhooks (url example: http://yourapp.herokuapp.com/-xxxxxxxxxxxxx)
## Deploy on Heroku:
If you want to deploy this app on Heroku, there's a one-click setup for that. Click below, fill up the form and hit **Deploy App**.
[](https://heroku.com/deploy?template=https://github.com/jakbin/GitNews)
## Try on Gitpod:
1. [Login to Gitpod](https://gitpod.io/login).
2. [Open this repo in Gitpod](https://gitpod.io/#github.com/pokurt/GitGram).
3. After workspace build, dependencies will be installed.
4. Follow step 2 and 3 in Setup section.
# Webhooks compatibility list :
The webhooks compatibility list below is currently work-in-progress and will update as more information are available.
## GitHub
### Project-wide
- [x] Commits
- [x] GitHub Actions (workflows, failed and success checks) - partial support
- [ ] GitHub Pages
- [x] Statuses
- [x] Issues and PRs
- [x] Stars
- [ ] Watchers
- [x] Forks
- [ ] PR Review Comments
- [ ] Projects
- [ ] Project columns
- [x] Visibility changes - partial support
- [ ] Registry packages
- [ ] Deployments
- [ ] Deployment statuses
- [ ] Repository vulnerability alerts
- [ ] Releases
- [ ] Wiki
- [ ] Branch or tag creation/deletion
- [ ] Commit comments
### Org-wide
- [ ] Repositories
- [ ] Test payloads
- [ ] Repo imports
### Integrations
- [x] CircleCI
- [x] Docker Hub
- [x] Codacy
- [ ] Heroku
- [ ] Cirrus CI
## GitLab
Currently on partial support
- [ ] Push events
- [x] Commits
- [ ] Tags
- [ ] Comments
- [ ] Issues and MRs
- [ ] Confidental ones
CI/CD
- [ ] Job events
- [ ] Pipeline events
- [ ] Deployment events
- [ ] Wiki Page events
This is originally created by [pokurt](https://github.com/pokurt/GitGram)