@theholocron/cli 2.0.0-alpha.62 → 2.0.0-alpha.63

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 CHANGED
@@ -948,8 +948,8 @@ jobs:
948
948
  BUILD_SCRIPT: \${{ inputs.build-script }}
949
949
  CODECOV_TOKEN: \${{ secrets.CODECOV_TOKEN }}
950
950
  `,
951
- "bookkeeping-pr": `\
952
- name: PR Bookkeeping
951
+ bookkeeping: `\
952
+ name: Bookkeeping
953
953
 
954
954
  on: # yamllint disable-line rule:truthy
955
955
  workflow_call:
@@ -962,7 +962,7 @@ on: # yamllint disable-line rule:truthy
962
962
 
963
963
  jobs:
964
964
  label:
965
- name: Add Labels to PRs
965
+ name: Apply Labels
966
966
  permissions:
967
967
  contents: read
968
968
  issues: write
@@ -970,7 +970,7 @@ jobs:
970
970
  runs-on: ubuntu-latest
971
971
  timeout-minutes: 5
972
972
  concurrency:
973
- group: bookkeeping-pr-\${{ github.event.pull_request.number }}
973
+ group: bookkeeping-\${{ github.event.pull_request.number || github.event.issue.number }}
974
974
  cancel-in-progress: true
975
975
  steps:
976
976
  - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
@@ -1902,14 +1902,18 @@ jobs:
1902
1902
  uses: ${ref("dependencies")}
1903
1903
  secrets: inherit
1904
1904
  `,
1905
- "bookkeeping-pr": `\
1906
- name: PR Bookkeeping
1905
+ bookkeeping: `\
1906
+ name: Bookkeeping
1907
1907
 
1908
1908
  on: # yamllint disable-line rule:truthy
1909
1909
  pull_request:
1910
1910
  types:
1911
1911
  - opened
1912
1912
  - edited
1913
+ issues:
1914
+ types:
1915
+ - opened
1916
+ - edited
1913
1917
 
1914
1918
  permissions:
1915
1919
  contents: read
@@ -1918,7 +1922,7 @@ permissions:
1918
1922
 
1919
1923
  jobs:
1920
1924
  bookkeeping:
1921
- uses: ${ref("bookkeeping-pr")}
1925
+ uses: ${ref("bookkeeping")}
1922
1926
  secrets: inherit
1923
1927
  `,
1924
1928
  audit: `\
@@ -4148,7 +4152,7 @@ async function runSetup(input) {
4148
4152
  print(formatStep(steps[steps.length - 1]));
4149
4153
  }
4150
4154
  }
4151
- if (loader.has("source") && (config.workflows ?? []).map((e) => typeof e === "string" ? e : e.name).includes("bookkeeping-pr")) {
4155
+ if (loader.has("source") && (config.workflows ?? []).map((e) => typeof e === "string" ? e : e.name).includes("bookkeeping")) {
4152
4156
  const source = loader.get("source");
4153
4157
  steps.push(await runStep("source", "write .github/labeler.yml", dryRun, async () => {
4154
4158
  await source.writeRepoFile(".github/labeler.yml", labelerConfig());
@@ -4361,8 +4365,9 @@ async function runStep(capability, step, dryRun, body) {
4361
4365
  }
4362
4366
  }
4363
4367
  function classify403(err) {
4364
- const msg = `${err.message} ${String(err.details)}`.toLowerCase();
4365
- if (msg.includes("advanced security") || msg.includes("not enabled for this repository") || msg.includes("upgrade") || msg.includes("not available on")) return "plan";
4368
+ const detailText = typeof err.details === "string" ? err.details : typeof err.details === "object" && err.details !== null && "message" in err.details ? String(err.details.message) : "";
4369
+ const text = `${err.message} ${detailText}`.toLowerCase();
4370
+ if (text.includes("advanced security") || text.includes("not enabled for this repository") || text.includes("upgrade") || text.includes("not available on")) return "plan";
4366
4371
  return "permissions";
4367
4372
  }
4368
4373
  function formatStep(step) {
package/dist/index.d.mts CHANGED
@@ -77,7 +77,7 @@ interface HolocronConfig {
77
77
  * Use the object form to pass `with:` inputs to the reusable workflow.
78
78
  *
79
79
  * Supported values: "lint" | "test" | "typecheck" | "codeql" | "review" |
80
- * "release" | "stale" | "greetings" | "dependencies" | "bookkeeping-pr" | "audit"
80
+ * "release" | "stale" | "greetings" | "dependencies" | "bookkeeping" | "audit"
81
81
  *
82
82
  * `holocron setup` writes `.github/workflows/<name>.yml` for each entry,
83
83
  * calling the corresponding `ci-<name>.yml@main` reusable workflow.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "2.0.0-alpha.62",
3
+ "version": "2.0.0-alpha.63",
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",