1.1.0 • Published 7 years ago

githookhandler v1.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
7 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

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago