async function doesRepoExist()

in scripts/create.js [78:85]


async function doesRepoExist() {
  const {
    data: {total_count},
  } = await octokit.search.repos({
    q: `org:${owner} "${newRepoName}"`,
  });
  return total_count > 0;
}