INNER CODE UNIT · JavaScript

getCommitsInfo

graphql-community/koa-graphql · resources/gen-changelog.js:312

async function getCommitsInfo(commits) {
  // Split commits into batches of 50 to prevent timeouts
  const commitInfoPromises = [];
  for (let i = 0; i < commits.length; i += 50) {
    const batch = commits.slice(i, i + 50);
    commitInfoPromises.push(batchCommitInfo(batch));
  }

  return (await Promise.all(commitInfoPromises)).flat();
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…