var GithubApi = require('github'),
    config = require('../config'),
    Promise = require('promise'),
    github = new GithubApi({
      debug: config.debug,
      version: '3.0.0'
    });

github.authenticate({
   type: 'oauth',
   token: config.github.token
});

module.exports = {
   github: github,
   getAllPulls: function() {
      var p = Promise.denodeify(github.pullRequests.getAll);
      return p({ user: config.repo.owner, repo: config.repo.name });
   }
};

@@ -337,17 +337,27 @@
     var 
-p
+getAllPulls
  = Promi
@@ -411,17 +411,27 @@
  return 
-p
+getAllPulls
 (%7B user:

Change a variable name for clarity