Skip to content

Instantly share code, notes, and snippets.

@nlf
Created May 10, 2012 17:24
Show Gist options
  • Save nlf/2654568 to your computer and use it in GitHub Desktop.
Save nlf/2654568 to your computer and use it in GitHub Desktop.
var express = require('express'),
cgh = require('connect-githubhook');
var app = express.createServer();
var hook = cgh.createHook({ 'secretpath': 'https://github.com/test/test' }, function (payload) {
//do whatever
});
app.use(hook);
app.get('/', function (req, res) {
//your routes
});
app.listen(8000);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment