Here is an example how to use Github API with bluebird promises. Should cleanup the code https://github.com/mikedeboer/node-github/blob/master/examples/testPromise.js