a Node.js server that sends email notification when someone push to GitHub repo via Webhooks
I want to receive email notification when someone push to my repository.
- a personal GitHub repository
- an email account to send email
- a VPS to deploy this project (installed npm and node)
- download, configure, deploy, run
git clone https://github.com/codethereforam/github-push-notification.git
cd github-push-notification/src
mv config.js.template config.js
vim config.js # edit it to use your config
npm install
nohup npm start > webhook.log 2>&1 &
- set GitHub repository Webhooks
- Payload URL: http://
[VPS IP]
:[listenPort in config.js]
/webhook - Content type: application/json
- Secret:
[secret in config.js]
- Just the push event
- Active