pullfrog 0.0.195-beta.5 → 0.0.195-beta.7
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/dist/cli.mjs +9 -21
- 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.
|
|
144995
|
+
version: "0.0.195-beta.7",
|
|
144996
144996
|
type: "module",
|
|
144997
144997
|
bin: {
|
|
144998
144998
|
pullfrog: "dist/cli.mjs",
|
|
@@ -153256,7 +153256,6 @@ async function fetchStatus(ctx) {
|
|
|
153256
153256
|
return {
|
|
153257
153257
|
installed: false,
|
|
153258
153258
|
appSlug: result.data.appSlug,
|
|
153259
|
-
ownerHasInstallation: result.data.ownerHasInstallation === true,
|
|
153260
153259
|
installationId: typeof result.data.installationId === "number" ? result.data.installationId : null,
|
|
153261
153260
|
repositorySelection: sel === "all" || sel === "selected" ? sel : null,
|
|
153262
153261
|
isOrg: result.data.isOrg === true
|
|
@@ -153352,30 +153351,19 @@ async function ensureInstallation(ctx) {
|
|
|
153352
153351
|
return initial;
|
|
153353
153352
|
}
|
|
153354
153353
|
const sessionId = await createSession(ctx);
|
|
153355
|
-
if (initial.
|
|
153354
|
+
if (initial.installationId) {
|
|
153356
153355
|
const repoRef = import_picocolors.default.bold(`${ctx.owner}/${ctx.repo}`);
|
|
153357
153356
|
const configUrl = installationConfigUrl({
|
|
153358
153357
|
owner: ctx.owner,
|
|
153359
153358
|
installationId: initial.installationId,
|
|
153360
153359
|
isOrg: initial.isOrg
|
|
153361
153360
|
});
|
|
153362
|
-
|
|
153363
|
-
|
|
153364
|
-
process.stdout.write(`${import_picocolors.default.gray(d2)} ${link(import_picocolors.default.dim(configUrl), configUrl)}
|
|
153365
|
-
`);
|
|
153366
|
-
const proceed = await ot2({
|
|
153367
|
-
message: "open browser to add it?",
|
|
153368
|
-
active: "open",
|
|
153369
|
-
inactive: "cancel"
|
|
153370
|
-
});
|
|
153371
|
-
handleCancel(proceed);
|
|
153372
|
-
if (!proceed) bail("canceled.");
|
|
153373
|
-
} else {
|
|
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.
|
|
153361
|
+
activeSpin.stop(`pullfrog is installed on selected repos, but ${repoRef} is not included.`);
|
|
153362
|
+
O2.info(`add it under "Repository access" on the installation config page.
|
|
153376
153363
|
${import_picocolors.default.dim(configUrl)}`);
|
|
153377
|
-
}
|
|
153378
|
-
|
|
153364
|
+
const openIt = await ot2({ message: "open browser?", active: "yes", inactive: "no" });
|
|
153365
|
+
handleCancel(openIt);
|
|
153366
|
+
if (openIt) openBrowser(configUrl);
|
|
153379
153367
|
} else {
|
|
153380
153368
|
activeSpin.stop("pullfrog app not installed");
|
|
153381
153369
|
const installUrl = `https://github.com/apps/${initial.appSlug}/installations/select_target?state=cli`;
|
|
@@ -153383,7 +153371,7 @@ async function ensureInstallation(ctx) {
|
|
|
153383
153371
|
${import_picocolors.default.dim(installUrl)}`);
|
|
153384
153372
|
openBrowser(installUrl);
|
|
153385
153373
|
}
|
|
153386
|
-
const isRepoAccessUpdate = initial.
|
|
153374
|
+
const isRepoAccessUpdate = !!initial.installationId;
|
|
153387
153375
|
const baseMsg = isRepoAccessUpdate ? "once you've added the repo, onboarding will proceed automatically" : "once you've installed the app, onboarding will proceed automatically";
|
|
153388
153376
|
activeSpin.start(baseMsg);
|
|
153389
153377
|
let activeSessionId = sessionId;
|
|
@@ -153835,7 +153823,7 @@ async function run2() {
|
|
|
153835
153823
|
}
|
|
153836
153824
|
|
|
153837
153825
|
// cli.ts
|
|
153838
|
-
var VERSION10 = "0.0.195-beta.
|
|
153826
|
+
var VERSION10 = "0.0.195-beta.7";
|
|
153839
153827
|
var bin = basename2(process.argv[1] || "");
|
|
153840
153828
|
var PROG = bin === "pf" || bin === "pullfrog" ? bin : "pullfrog";
|
|
153841
153829
|
var rawArgs = process.argv.slice(2);
|