Telegram bot that sends new commits from GitHub with statistics to the chat
- Node is required.
- Make sure everything is correct in
.env
file. - Run
npm install
to install dependencies - Run
npm run start
1. For repository:
Go to repository settings and select webhooks:
Example url
https://github.com/YOUR_USERNAME/YOUR_REPO/settings/hooks
2. For organisation:
Go to organisation settings and select webhooks:
Example url
https://github.com/YOUR_ORGANISATION/settings/hooks
- Go to account settings, go down and select
Developer Settings
- Go to
Fine-grained tokens
section - Click on
Generate new token
button - Create a new token.
If you want to create a token for an organization, then you need to enable this feature in the organization settings.
Show details
https://github.com/organizations/YOUR_ORGANISATION/settings/personal-access-tokensThen, select in 'Resource Owner' your organisation
# build image
docker build . -t webhook
# check image
docker images webhook:latest
# run container
docker run webhook
# build and start service
docker-compose up --build
# stop service and remove artifacts
docker-compose down