create-egregore 0.12.1 → 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.
Files changed (2) hide show
  1. package/lib/local.js +15 -0
  2. package/package.json +1 -1
package/lib/local.js CHANGED
@@ -627,6 +627,21 @@ async function localJoinFlow(orgArg, ui) {
627
627
  : `${orgLogin}-memory`;
628
628
  const managedRepos = config.repos || [];
629
629
 
630
+ // 5b. Check access to memory repo (required) — may need invitation acceptance
631
+ if (!(await repoExists(githubToken, orgLogin, memoryRepoName))) {
632
+ console.log("");
633
+ ui.info("Accept the memory repo invitation in your browser.");
634
+ openBrowser(`https://github.com/${orgLogin}/${memoryRepoName}`);
635
+ await ui.prompt("Press Enter after accepting...");
636
+
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.");
640
+ process.exit(1);
641
+ }
642
+ ui.success("Access confirmed");
643
+ }
644
+
630
645
  // 6. Clone locally
631
646
  const base = process.cwd();
632
647
  const forkUrl = `https://github.com/${orgLogin}/${repoName}.git`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-egregore",
3
- "version": "0.12.1",
3
+ "version": "0.12.3",
4
4
  "description": "Set up Egregore for your team in one command",
5
5
  "license": "MIT",
6
6
  "bin": {