Skip to content

Instantly share code, notes, and snippets.

@8bitDesigner
Created March 5, 2014 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 8bitDesigner/9377381 to your computer and use it in GitHub Desktop.
Save 8bitDesigner/9377381 to your computer and use it in GitHub Desktop.
var GitHub = require('github')
, Octopie = require('octopie')
, octopie = new Octopie({ options: '...' })
, gh = new GitHub({ version: '3.0.0' })
gh.authenticate({ type: 'oauth', token: process.env.GHTOKEN })
octopie.on('pull_request', function(data) {
myTestServer.startTesting(data, function(status) {
// from: http://ajaxorg.github.io/node-github/#statuses
github.statuses.create({ user: 'foo', repo: 'bar', sha: '', state: status })
})
})
octopie.listen(3000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment