create-egregore 0.12.2 → 0.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/local.js +8 -23
- package/package.json +1 -1
package/lib/local.js
CHANGED
|
@@ -627,34 +627,19 @@ async function localJoinFlow(orgArg, ui) {
|
|
|
627
627
|
: `${orgLogin}-memory`;
|
|
628
628
|
const managedRepos = config.repos || [];
|
|
629
629
|
|
|
630
|
-
// 5b. Check access to memory repo
|
|
631
|
-
|
|
632
|
-
const inaccessible = [];
|
|
633
|
-
for (const repo of additionalRepos) {
|
|
634
|
-
if (!(await repoExists(githubToken, orgLogin, repo))) {
|
|
635
|
-
inaccessible.push(repo);
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
if (inaccessible.length > 0) {
|
|
630
|
+
// 5b. Check access to memory repo (required) — may need invitation acceptance
|
|
631
|
+
if (!(await repoExists(githubToken, orgLogin, memoryRepoName))) {
|
|
639
632
|
console.log("");
|
|
640
|
-
ui.info(
|
|
641
|
-
|
|
642
|
-
openBrowser(`https://github.com/${orgLogin}/${repo}`);
|
|
643
|
-
}
|
|
633
|
+
ui.info("Accept the memory repo invitation in your browser.");
|
|
634
|
+
openBrowser(`https://github.com/${orgLogin}/${memoryRepoName}`);
|
|
644
635
|
await ui.prompt("Press Enter after accepting...");
|
|
645
636
|
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
stillBlocked.push(repo);
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
if (stillBlocked.length > 0) {
|
|
653
|
-
ui.error(`Still can't access: ${stillBlocked.join(", ")}`);
|
|
654
|
-
ui.error("Make sure you've been invited to all repos.");
|
|
637
|
+
if (!(await repoExists(githubToken, orgLogin, memoryRepoName))) {
|
|
638
|
+
ui.error(`Still can't access ${orgLogin}/${memoryRepoName}`);
|
|
639
|
+
ui.error("Make sure the org admin has invited you to the memory repo.");
|
|
655
640
|
process.exit(1);
|
|
656
641
|
}
|
|
657
|
-
ui.success("
|
|
642
|
+
ui.success("Access confirmed");
|
|
658
643
|
}
|
|
659
644
|
|
|
660
645
|
// 6. Clone locally
|