@theholocron/cli 2.0.0-alpha.24 → 2.0.0-alpha.25

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 +24 -0
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -3588,6 +3588,23 @@ const ALEX_CONFIG = JSON.stringify({ allow: [
3588
3588
  "husky",
3589
3589
  "period"
3590
3590
  ] }, null, 2) + "\n";
3591
+ const LABELER_CONFIG = `\
3592
+ # AUTO-GENERATED by holocron — run \`holocron setup\` to regenerate.
3593
+ bug:
3594
+ - '^fix'
3595
+
3596
+ dependencies:
3597
+ - '^chore\\(deps'
3598
+
3599
+ documentation:
3600
+ - '^docs'
3601
+
3602
+ enhancement:
3603
+ - '^feat'
3604
+
3605
+ github_actions:
3606
+ - '^ci'
3607
+ `;
3591
3608
  const DEPENDABOT_CONFIG = `\
3592
3609
  # AUTO-GENERATED by holocron — run \`holocron setup\` to regenerate.
3593
3610
  version: 2
@@ -3814,6 +3831,13 @@ async function runSetup(input) {
3814
3831
  print(formatStep(steps[steps.length - 1]));
3815
3832
  }
3816
3833
  }
3834
+ if (loader.has("source") && (config.project.workflows ?? []).map((e) => typeof e === "string" ? e : e.name).includes("bookkeeping-pr")) {
3835
+ const source = loader.get("source");
3836
+ steps.push(await runStep("source", "write .github/labeler.yml", dryRun, async () => {
3837
+ await source.writeRepoFile(".github/labeler.yml", LABELER_CONFIG);
3838
+ }));
3839
+ print(formatStep(steps[steps.length - 1]));
3840
+ }
3817
3841
  if (loader.has("source") && config.project.repoPolicy?.preset !== "none") {
3818
3842
  const source = loader.get("source");
3819
3843
  steps.push(await runStep("source", "write .github/dependabot.yml", dryRun, async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "2.0.0-alpha.24",
3
+ "version": "2.0.0-alpha.25",
4
4
  "description": "The Holocron CLI — a pluggable, capability-based orchestrator for spinning up and operating software projects.",
5
5
  "homepage": "https://github.com/theholocron/holocron/tree/main/packages/cli#readme",
6
6
  "bugs": "https://github.com/theholocron/holocron/issues",