@theholocron/cli 5.0.0-alpha.211 → 5.0.0-alpha.212
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 +23 -6
- package/dist/cli.mjs.map +1 -1
- package/package.json +3 -3
package/dist/cli.mjs
CHANGED
|
@@ -8956,6 +8956,7 @@ async function runSetup(input) {
|
|
|
8956
8956
|
logger
|
|
8957
8957
|
});
|
|
8958
8958
|
const content = astromechTurbo.turboConfig();
|
|
8959
|
+
const firstStep = steps.length;
|
|
8959
8960
|
if (content === null) steps.push({
|
|
8960
8961
|
capability: "source",
|
|
8961
8962
|
step: "write turbo.json",
|
|
@@ -8966,7 +8967,6 @@ async function runSetup(input) {
|
|
|
8966
8967
|
steps.push(await runStep("source", "write turbo.json", dryRun, async () => {
|
|
8967
8968
|
await source.writeRepoFile("turbo.json", content);
|
|
8968
8969
|
}));
|
|
8969
|
-
print(formatStep(steps[steps.length - 1]));
|
|
8970
8970
|
const rootPkgRaw = await readFile(join(input.context.repoRoot, "package.json"), "utf8").catch(() => null);
|
|
8971
8971
|
const rootPkg = rootPkgRaw ? JSON.parse(rootPkgRaw) : null;
|
|
8972
8972
|
const workspaceYaml = await readFile(join(input.context.repoRoot, "pnpm-workspace.yaml"), "utf8").catch(() => "");
|
|
@@ -8982,7 +8982,7 @@ async function runSetup(input) {
|
|
|
8982
8982
|
}));
|
|
8983
8983
|
}
|
|
8984
8984
|
}
|
|
8985
|
-
print(formatStep(
|
|
8985
|
+
for (const step of steps.slice(firstStep)) print(formatStep(step));
|
|
8986
8986
|
}
|
|
8987
8987
|
if (source.syncLabels) {
|
|
8988
8988
|
steps.push(await runStep("source", "sync labels", dryRun, async () => {
|
|
@@ -9424,21 +9424,38 @@ async function runSetup(input) {
|
|
|
9424
9424
|
print(style.hint(" · Administration — read and write"));
|
|
9425
9425
|
print(style.hint(" · Code scanning alerts — read and write"));
|
|
9426
9426
|
print(style.hint(" · Contents — read and write"));
|
|
9427
|
+
print(style.hint(" · Custom properties — read and write"));
|
|
9428
|
+
print(style.hint(" · Environments — read and write"));
|
|
9429
|
+
print(style.hint(" · Issues — read and write (labels)"));
|
|
9427
9430
|
print(style.hint(" · Secret scanning alerts — read and write"));
|
|
9431
|
+
print(style.hint(" · Secrets — read and write"));
|
|
9432
|
+
print(style.hint(" · Variables — read and write (Actions variables)"));
|
|
9428
9433
|
print(style.hint(" · Workflows — read and write"));
|
|
9429
9434
|
print(style.hint(" · Metadata — read (added automatically)"));
|
|
9430
9435
|
print("");
|
|
9431
|
-
print(style.hint(" Org-scoped operations (teams,
|
|
9436
|
+
print(style.hint(" Org-scoped operations (teams, organization Actions variables) require"));
|
|
9432
9437
|
print(style.hint(" HOLOCRON_ORG_TOKEN — a fine-grained PAT with resource owner set to the org:"));
|
|
9433
9438
|
print("");
|
|
9434
9439
|
print(style.hint(" · Administration — read and write (repository permission)"));
|
|
9435
9440
|
print(style.hint(" · Members — read (organization permission)"));
|
|
9436
|
-
print(style.hint(" ·
|
|
9441
|
+
print(style.hint(" · Variables — read and write (organization permission)"));
|
|
9437
9442
|
print(style.hint(" · Metadata — read (repository permission, auto-included)"));
|
|
9438
9443
|
print("");
|
|
9444
|
+
if (steps.some((s) => s.reason === "permissions" && /GitHub Pages/.test(s.step))) {
|
|
9445
|
+
print("");
|
|
9446
|
+
print(style.hint(" GitHub Pages uses HOLOCRON_DEPLOY_TOKEN (keyring key github.deploy):"));
|
|
9447
|
+
print("");
|
|
9448
|
+
print(style.hint(" · Pages — read and write"));
|
|
9449
|
+
print(style.hint(" · Administration — read and write"));
|
|
9450
|
+
print(style.hint(" · Metadata — read (added automatically)"));
|
|
9451
|
+
}
|
|
9452
|
+
print("");
|
|
9439
9453
|
print(style.hint(" Create tokens at: https://github.com/settings/personal-access-tokens/new"));
|
|
9440
|
-
print(style.hint("
|
|
9441
|
-
print(style.hint("
|
|
9454
|
+
print(style.hint(" Store them: HOLOCRON_ADMIN_TOKEN / HOLOCRON_ORG_TOKEN / HOLOCRON_DEPLOY_TOKEN env vars,"));
|
|
9455
|
+
print(style.hint(" or keyring keys github.admin / github.org / github.deploy"));
|
|
9456
|
+
print(style.hint(" Then re-run: holocron repo setup"));
|
|
9457
|
+
print(style.hint(" (--token <pat> overrides every token, the org one included; use it only when one"));
|
|
9458
|
+
print(style.hint(" token covers everything.)"));
|
|
9442
9459
|
}
|
|
9443
9460
|
return {
|
|
9444
9461
|
steps,
|