lib/pullRequests.js
function getOpenPRs(auth, repo, debugEnabled) {
  setDebugMode(debugEnabled);
  return authenticate(auth)
    .then(function () {
      return getPRsForRepo(repo)
        .then(getLabels, handleError('getPRs'))
        .then(getDiffs, handleError('getLabels'));
    }, handleError('authenticate'));
}
function getOpenPRs(auth, repo, debugEnabled) {
  setDebugMode(debugEnabled);
  return authenticate(auth)
    .then(function () {
      return getPRsForRepo(repo)
        .then(getLabels, handleError('getPRs'))
        .then(getDiffs, handleError('getLabels'));
    }, handleError('authenticate'));
}
function getOpenPRs ( auth , repo , debugEnabled ) { setDebugMode ( debugEnabled ) ; return authenticate ( auth ) . then ( function ( ) { return getPRsForRepo ( repo ) . then ( getLabels , handleError ( 'getPRs' ) ) . then ( getDiffs , handleError ( 'getLabels' ) ) ; } , handleError ( 'authenticate' ) ) ; }
Get a list of all open pull requests.
@param  {Object}  auth         Credentials containing an auth token
@param  {Object}  repo         The repo from which to get the Open PRs
@param  {Boolean} debugEnabled Set the debug state
@return {Promise}              Resolves to a list of all open pull-requests
Get a list of all open pull requests .