lib/pullRequests.js
function getDiffs(prs) {
  print('Fetching diffs', debug);
  return Promise.all(prs.reduce((flattenedPRs, pr) => {
    if (pr) {
      return flattenedPRs.concat(pr);
    }
  }, []).map(getDiffForPR));
}
function getDiffs(prs) {
  print('Fetching diffs', debug);
  return Promise.all(prs.reduce((flattenedPRs, pr) => {
    if (pr) {
      return flattenedPRs.concat(pr);
    }
  }, []).map(getDiffForPR));
}
function getDiffs ( prs ) { print ( 'Fetching diffs' , debug ) ; return Promise . all ( prs . reduce ( ( flattenedPRs , pr ) => { if ( pr ) { return flattenedPRs . concat ( pr ) ; } } , [ ] ) . map ( getDiffForPR ) ) ; }
Fetch diffs for a list of pull-requests
@param  {Array}  repos List of pull-requests
@return {Promise}      Resolves to an array of PRs containing diff infomation
Fetch diffs for a list of pull - requests