https://github.com/velopert/nodejs-github-webhook
Github Webhook server built with Node.js
https://github.com/velopert/nodejs-github-webhook
Last synced: 8 months ago
JSON representation
Github Webhook server built with Node.js
- Host: GitHub
- URL: https://github.com/velopert/nodejs-github-webhook
- Owner: velopert
- Created: 2016-03-03T12:11:31.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2023-01-20T11:30:17.000Z (over 3 years ago)
- Last Synced: 2025-10-10T11:33:24.019Z (8 months ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 30
- Watchers: 2
- Forks: 14
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#nodejs-github-webhook
## How to use
##### 1. Specify port and secret key from _index.js_
```javascript
var secret = 'amazingkey';
var port = 8081;
```
##### 2. Specify the git repository from _hook.sh_
```shell
#DIRECTORY TO THE REPOSITORY
REPOSITORY="./myrepository"
```
##### 3. Run the server
```
$ npm start
```
##### 4. Configure Webhook at Github repository Settings
Payload URL is http://ADDRESS:PORT/push
Enter the secret key that you have entered in index.js