lib/pullRequests.js
function getLabels(prs) {
  return Promise.all(prs.reduce((flattenedPRs, pr) => {
    if (pr) {
      return flattenedPRs.concat(pr);
    }
  }, []).map(populateLabelsForPR));
}
function getLabels(prs) {
  return Promise.all(prs.reduce((flattenedPRs, pr) => {
    if (pr) {
      return flattenedPRs.concat(pr);
    }
  }, []).map(populateLabelsForPR));
}
function getLabels ( prs ) { return Promise . all ( prs . reduce ( ( flattenedPRs , pr ) => { if ( pr ) { return flattenedPRs . concat ( pr ) ; } } , [ ] ) . map ( populateLabelsForPR ) ) ; }
Fetch labels for a list of pull-requests
@param  {Array}  repos List of pull-requests
@return {Promise}      Resolves to an array of PRs containing labels
Fetch labels for a list of pull - requests