pullfrog 0.0.195-beta.3 → 0.0.195-beta.5

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/dist/cli.mjs +12 -9
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -144992,7 +144992,7 @@ var import_semver = __toESM(require_semver2(), 1);
144992
144992
  // package.json
144993
144993
  var package_default = {
144994
144994
  name: "pullfrog",
144995
- version: "0.0.195-beta.3",
144995
+ version: "0.0.195-beta.5",
144996
144996
  type: "module",
144997
144997
  bin: {
144998
144998
  pullfrog: "dist/cli.mjs",
@@ -153371,8 +153371,8 @@ async function ensureInstallation(ctx) {
153371
153371
  handleCancel(proceed);
153372
153372
  if (!proceed) bail("canceled.");
153373
153373
  } else {
153374
- activeSpin.stop(`pullfrog is installed on selected repos, but ${repoRef} is not included`);
153375
- O2.info(`add it via GitHub's installation config page
153374
+ activeSpin.stop(`pullfrog is installed on selected repos, but ${repoRef} is not included.`);
153375
+ O2.info(`add it under "Repository access" on the installation config page.
153376
153376
  ${import_picocolors.default.dim(configUrl)}`);
153377
153377
  }
153378
153378
  openBrowser(configUrl);
@@ -153383,7 +153383,8 @@ async function ensureInstallation(ctx) {
153383
153383
  ${import_picocolors.default.dim(installUrl)}`);
153384
153384
  openBrowser(installUrl);
153385
153385
  }
153386
- const baseMsg = "once you've installed the app, onboarding will proceed automatically";
153386
+ const isRepoAccessUpdate = initial.ownerHasInstallation;
153387
+ const baseMsg = isRepoAccessUpdate ? "once you've added the repo, onboarding will proceed automatically" : "once you've installed the app, onboarding will proceed automatically";
153387
153388
  activeSpin.start(baseMsg);
153388
153389
  let activeSessionId = sessionId;
153389
153390
  let pollMs = activeSessionId ? SESSION_POLL_MS : FALLBACK_POLL_MS;
@@ -153397,13 +153398,14 @@ async function ensureInstallation(ctx) {
153397
153398
  activeSpin.message(`${baseMsg} ${import_picocolors.default.dim("(press r to recheck manually)")}`);
153398
153399
  hintShown = true;
153399
153400
  }
153401
+ const doneMsg = isRepoAccessUpdate ? "repo access confirmed" : "pullfrog app installed";
153400
153402
  if (listener.consume()) {
153401
153403
  activeSpin.message("rechecking via GitHub API");
153402
153404
  try {
153403
153405
  const status = await fetchStatus(ctx);
153404
153406
  if (status.installed) {
153405
153407
  if (activeSessionId) cleanupSession({ token: ctx.token, sessionId: activeSessionId });
153406
- activeSpin.stop("pullfrog app installed");
153408
+ activeSpin.stop(doneMsg);
153407
153409
  return status;
153408
153410
  }
153409
153411
  } catch {
@@ -153423,7 +153425,7 @@ async function ensureInstallation(ctx) {
153423
153425
  const status = await fetchStatus(ctx);
153424
153426
  if (status.installed) {
153425
153427
  cleanupSession({ token: ctx.token, sessionId: activeSessionId });
153426
- activeSpin.stop("pullfrog app installed");
153428
+ activeSpin.stop(doneMsg);
153427
153429
  return status;
153428
153430
  }
153429
153431
  }
@@ -153433,7 +153435,7 @@ async function ensureInstallation(ctx) {
153433
153435
  try {
153434
153436
  const status = await fetchStatus(ctx);
153435
153437
  if (status.installed) {
153436
- activeSpin.stop("pullfrog app installed");
153438
+ activeSpin.stop(doneMsg);
153437
153439
  return status;
153438
153440
  }
153439
153441
  } catch {
@@ -153445,7 +153447,8 @@ async function ensureInstallation(ctx) {
153445
153447
  }
153446
153448
  if (activeSessionId) cleanupSession({ token: ctx.token, sessionId: activeSessionId });
153447
153449
  bail(
153448
- `timed out waiting for app installation.
153450
+ isRepoAccessUpdate ? `timed out waiting for repo access.
153451
+ ${import_picocolors.default.dim("add the repo, then re-run:")} npx pullfrog init` : `timed out waiting for app installation.
153449
153452
  ${import_picocolors.default.dim("if your org requires admin approval, ask an admin to approve,")}
153450
153453
  ${import_picocolors.default.dim("then re-run:")} npx pullfrog init`
153451
153454
  );
@@ -153832,7 +153835,7 @@ async function run2() {
153832
153835
  }
153833
153836
 
153834
153837
  // cli.ts
153835
- var VERSION10 = "0.0.195-beta.3";
153838
+ var VERSION10 = "0.0.195-beta.5";
153836
153839
  var bin = basename2(process.argv[1] || "");
153837
153840
  var PROG = bin === "pf" || bin === "pullfrog" ? bin : "pullfrog";
153838
153841
  var rawArgs = process.argv.slice(2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pullfrog",
3
- "version": "0.0.195-beta.3",
3
+ "version": "0.0.195-beta.5",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "pullfrog": "dist/cli.mjs",