pullfrog 0.0.195-beta.7 → 0.0.196

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 +21 -16
  2. package/package.json +2 -2
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.7",
144995
+ version: "0.0.196",
144996
144996
  type: "module",
144997
144997
  bin: {
144998
144998
  pullfrog: "dist/cli.mjs",
@@ -145012,7 +145012,7 @@ var package_default = {
145012
145012
  scratch: "node scratch.ts",
145013
145013
  upDeps: "pnpm up --latest",
145014
145014
  lock: "pnpm install --no-frozen-lockfile",
145015
- prepare: "cd .. && husky action/.husky"
145015
+ prepare: "cd .. && husky"
145016
145016
  },
145017
145017
  devDependencies: {
145018
145018
  "@actions/core": "^1.11.1",
@@ -153359,8 +153359,10 @@ async function ensureInstallation(ctx) {
153359
153359
  isOrg: initial.isOrg
153360
153360
  });
153361
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.
153363
- ${import_picocolors.default.dim(configUrl)}`);
153362
+ O2.info(
153363
+ `add it under "Repository access" on the installation config page.
153364
+ ${import_picocolors.default.dim(configUrl)}`
153365
+ );
153364
153366
  const openIt = await ot2({ message: "open browser?", active: "yes", inactive: "no" });
153365
153367
  handleCancel(openIt);
153366
153368
  if (openIt) openBrowser(configUrl);
@@ -153507,7 +153509,7 @@ async function handleSecret(ctx) {
153507
153509
  }
153508
153510
  if (matches.length > 0) {
153509
153511
  activeSpin.start("");
153510
- activeSpin.stop("found secrets");
153512
+ activeSpin.stop("secrets already configured");
153511
153513
  for (const m of matches) {
153512
153514
  process.stdout.write(
153513
153515
  `${import_picocolors.default.gray(d2)} ${import_picocolors.default.cyan(m.name)} ${import_picocolors.default.dim(`(${m.source})`)}
@@ -153592,8 +153594,7 @@ async function handleSecret(ctx) {
153592
153594
  return;
153593
153595
  }
153594
153596
  if (saveResult.saved) {
153595
- const scopeLabel = ctx.secrets.isOrg ? scope2 === "repo" ? "repo secret" : "org secret" : "";
153596
- activeSpin.stop(`${import_picocolors.default.cyan(envVar)} saved${scopeLabel ? ` as ${scopeLabel}` : ""}`);
153597
+ activeSpin.stop(`saved ${import_picocolors.default.cyan(envVar)} to Pullfrog`);
153597
153598
  } else {
153598
153599
  activeSpin.stop(import_picocolors.default.red("could not save secret"));
153599
153600
  O2.warn(
@@ -153618,7 +153619,7 @@ async function handleSecret(ctx) {
153618
153619
  });
153619
153620
  if (secretResult.saved) {
153620
153621
  activeSpin.stop(
153621
- `${import_picocolors.default.cyan(envVar)} saved${org && !secretResult.orgFailed ? ` to ${import_picocolors.default.dim(ctx.owner)} org` : ""}`
153622
+ `saved ${import_picocolors.default.cyan(envVar)} to ${org && !secretResult.orgFailed ? `${import_picocolors.default.dim(ctx.owner)} org secret` : "GitHub Actions secret"}`
153622
153623
  );
153623
153624
  if (secretResult.orgFailed) {
153624
153625
  O2.warn("org secret failed (admin access required) \u2014 saved as repo secret instead");
@@ -153633,7 +153634,7 @@ async function promptTestRun(ctx) {
153633
153634
  const proceed = await _t({
153634
153635
  message: "test your installation?",
153635
153636
  options: [
153636
- { value: true, label: "yes", hint: `runs "Tell me a joke"` },
153637
+ { value: true, label: "yes", hint: "dispatches a test run in your GitHub Actions" },
153637
153638
  { value: false, label: "skip" }
153638
153639
  ]
153639
153640
  });
@@ -153651,10 +153652,12 @@ async function promptTestRun(ctx) {
153651
153652
  O2.warn(result.data.error || `dispatch failed (${result.status})`);
153652
153653
  return;
153653
153654
  }
153654
- activeSpin.stop("test run dispatched");
153655
+ activeSpin.stop("dispatched test run");
153655
153656
  if (result.data.url) {
153656
- process.stdout.write(`${import_picocolors.default.gray(d2)} ${link(import_picocolors.default.dim(result.data.url), result.data.url)}
153657
- `);
153657
+ process.stdout.write(
153658
+ `${import_picocolors.default.gray(d2)} ${link(import_picocolors.default.dim(result.data.url), result.data.url)}
153659
+ `
153660
+ );
153658
153661
  openBrowser(result.data.url);
153659
153662
  }
153660
153663
  }
@@ -153687,7 +153690,7 @@ async function main2() {
153687
153690
  if (!resolved) bail(`unknown model provider: ${secrets.model}`);
153688
153691
  provider2 = resolved;
153689
153692
  spin.start("");
153690
- spin.stop(`selected model is ${import_picocolors.default.cyan(secrets.model)}`);
153693
+ spin.stop(`using model ${import_picocolors.default.cyan(secrets.model)}`);
153691
153694
  } else {
153692
153695
  const providerId = await _t({
153693
153696
  message: "select your preferred model provider",
@@ -153732,7 +153735,7 @@ async function main2() {
153732
153735
  if (result.data.already_existed) {
153733
153736
  spin.stop("pullfrog.yml already exists");
153734
153737
  } else if (result.data.pull_request_url) {
153735
- spin.stop("created pull request with pullfrog.yml");
153738
+ spin.stop("opened pull request with pullfrog.yml");
153736
153739
  process.stdout.write(
153737
153740
  `${import_picocolors.default.gray(d2)} ${link(import_picocolors.default.dim(result.data.pull_request_url), result.data.pull_request_url)}
153738
153741
  `
@@ -153749,7 +153752,9 @@ async function main2() {
153749
153752
  if (!merged) skipTestRun = true;
153750
153753
  } else {
153751
153754
  const short = result.data.hash?.slice(0, 7);
153752
- spin.stop(short ? `pullfrog.yml committed ${import_picocolors.default.dim(short)}` : "pullfrog.yml committed");
153755
+ spin.stop(
153756
+ short ? `committed pullfrog.yml to repo ${import_picocolors.default.dim(short)}` : "committed pullfrog.yml to repo"
153757
+ );
153753
153758
  }
153754
153759
  if (!skipTestRun && !secrets.hasRuns) {
153755
153760
  await promptTestRun({ token, owner: remote.owner, repo: remote.repo });
@@ -153823,7 +153828,7 @@ async function run2() {
153823
153828
  }
153824
153829
 
153825
153830
  // cli.ts
153826
- var VERSION10 = "0.0.195-beta.7";
153831
+ var VERSION10 = "0.0.196";
153827
153832
  var bin = basename2(process.argv[1] || "");
153828
153833
  var PROG = bin === "pf" || bin === "pullfrog" ? bin : "pullfrog";
153829
153834
  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.7",
3
+ "version": "0.0.196",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "pullfrog": "dist/cli.mjs",
@@ -20,7 +20,7 @@
20
20
  "scratch": "node scratch.ts",
21
21
  "upDeps": "pnpm up --latest",
22
22
  "lock": "pnpm install --no-frozen-lockfile",
23
- "prepare": "cd .. && husky action/.husky"
23
+ "prepare": "cd .. && husky"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@actions/core": "^1.11.1",