@theholocron/cli 2.0.0-alpha.22 → 2.0.0-alpha.23

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 +22 -1
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -1938,6 +1938,19 @@ jobs:
1938
1938
  };
1939
1939
  const KNOWN_WORKFLOWS = new Set(Object.keys(WORKFLOW_TEMPLATES));
1940
1940
  /**
1941
+ * GitHub check context name each CI workflow produces on a PR.
1942
+ *
1943
+ * The format is "{caller-workflow-name} / {reusable-job-name}". The caller
1944
+ * job's own `name:` field does NOT appear in the external check name — only
1945
+ * the calling workflow's top-level `name:` and the inner reusable-workflow
1946
+ * job name matter. Only workflows that gate merges are listed here.
1947
+ */
1948
+ const WORKFLOW_CHECK_CONTEXTS = {
1949
+ lint: "Lint / Lint entire codebase",
1950
+ test: "Test / Run tests and collect coverage",
1951
+ typecheck: "Typecheck / tsc --noEmit"
1952
+ };
1953
+ /**
1941
1954
  * Generate the thin caller content for a workflow, optionally injecting
1942
1955
  * `with:` inputs before `secrets: inherit` in the jobs block.
1943
1956
  */
@@ -3763,7 +3776,15 @@ async function runSetup(input) {
3763
3776
  await source.updateRepoSettings(BALANCED_REPO_SETTINGS);
3764
3777
  }));
3765
3778
  print(formatStep(steps[steps.length - 1]));
3766
- const requiredChecks = preset === "strict" ? policy.requiredChecks ?? [] : [];
3779
+ const configuredWorkflowNames = (config.project.workflows ?? []).map((entry) => typeof entry === "string" ? entry : entry.name);
3780
+ const requiredChecks = preset === "strict" ? [
3781
+ "DCO",
3782
+ ...configuredWorkflowNames.flatMap((name) => {
3783
+ const ctx = WORKFLOW_CHECK_CONTEXTS[name];
3784
+ return ctx ? [ctx] : [];
3785
+ }),
3786
+ ...policy.requiredChecks ?? []
3787
+ ] : [];
3767
3788
  steps.push(await upsertBranchProtection(source, dryRun, requiredChecks));
3768
3789
  print(formatStep(steps[steps.length - 1]));
3769
3790
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/cli",
3
- "version": "2.0.0-alpha.22",
3
+ "version": "2.0.0-alpha.23",
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",