1.1.0 • Published 6 years ago

githookhandler v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

githook

Simple http server to handle github webhooks

Install

npm install githookhandler

Usage

const {init, hookEvent} = require('githookhandler');

const GITHUB_SECRET = "justacceptmyrequest";
const PORT = 3010;

hookEvent.on('push', ({repo, branch, resp})=>{
    console.log(repo, branch)
})

hookEvent.on('ping', ()=>{
    console.log('Ping received')
})

init(PORT, GITHUB_SECRET);
1.1.0

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago