@theholocron/astromech 5.0.0-alpha.521 → 5.0.0-alpha.523

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.
@@ -3,7 +3,7 @@
3
3
  * zero-runtime-dep entry so `astromech.config.ts` and `@theholocron/cli`
4
4
  * can import it without pulling the task runner.
5
5
  */
6
- import { a as TasksConfig, i as TaskEntry, n as CiConfig, r as TaskConfigItem, t as CiAggregatePoster } from "../schema.type-Dsixbev3.mjs";
6
+ import { a as TaskEntry, i as TaskConfigItem, n as CiConfig, o as TasksConfig, r as CiPin, t as CiAggregatePoster } from "../schema.type-CGJuQMKD.mjs";
7
7
  import { Loaded } from "@theholocron/datapad";
8
8
  /**
9
9
  * The `tasks` config shape — the single manifest of what a repo runs.
@@ -65,4 +65,4 @@ export declare const defineConfig: <C extends TasksConfig>(config: C) => C;
65
65
  * `[]` for a repo that releases as one.
66
66
  */
67
67
  export declare function releaseGroups(config: Pick<TasksConfig, "tasks">): string[];
68
- export type { CiAggregatePoster, CiConfig, TaskConfigItem, TaskEntry, TasksConfig, TasksInput };
68
+ export type { CiAggregatePoster, CiConfig, CiPin, TaskConfigItem, TaskEntry, TasksConfig, TasksInput };
package/dist/index.d.mts CHANGED
@@ -20,7 +20,7 @@
20
20
  * The config surface (`defineConfig`, `TasksConfig`, `loadTasksConfig`)
21
21
  * lives in the zero-runtime-dep `@theholocron/astromech/config` subpath.
22
22
  */
23
- import { a as TasksConfig, t as CiAggregatePoster } from "./schema.type-Dsixbev3.mjs";
23
+ import { o as TasksConfig, t as CiAggregatePoster } from "./schema.type-CGJuQMKD.mjs";
24
24
  /** A check run on the head commit, in the plain shape the aggregate needs (no GitHub types). */
25
25
  interface AggregateCheckRun {
26
26
  /** The check run's id, `null` when the API gave none; the tie-break when two runs started together. */
@@ -99,6 +99,16 @@ interface TasksConfig {
99
99
  }
100
100
  /** Who posts the required `ci / Required checks` check: the Actions poller (`ci.yml`) or Sentinel, from webhooks. */
101
101
  type CiAggregatePoster = "actions" | "sentinel";
102
+ /** Who may satisfy the required `ci / Required checks` context: one GitHub App, by its integration id. */
103
+ interface CiPin {
104
+ /**
105
+ * The numeric id of the GitHub App (the ruleset's `integration_id`) whose check runs may satisfy
106
+ * `ci / Required checks`. For Sentinel's production App, use its App id (the one `githubApps` and
107
+ * `SENTINEL_GITHUB_APP_ID` hold); a dev instance has another id and does not count. Setting it changes who can merge,
108
+ * so turn it on only once the outage runbook's bypass is settled (spec `process-sentinel-posts-ci`, phase 10).
109
+ */
110
+ integrationId: number;
111
+ }
102
112
  /** The `ci` block of the manifest. */
103
113
  interface CiConfig {
104
114
  /**
@@ -108,5 +118,11 @@ interface CiConfig {
108
118
  * request, which `probe generated check` enforces.
109
119
  */
110
120
  aggregate?: CiAggregatePoster;
121
+ /**
122
+ * Opt in to pinning the required `ci / Required checks` context to one GitHub App. Off when omitted: the ruleset names
123
+ * the context only, so any app (or a workflow) can satisfy it. `holocron setup` writes `integration_id` on that one
124
+ * entry of a `strict` repo's ruleset; `holocron doctor repo` compares it. Other required checks are never pinned.
125
+ */
126
+ pin?: CiPin;
111
127
  }
112
- export { TasksConfig as a, TaskEntry as i, CiConfig as n, TaskConfigItem as r, CiAggregatePoster as t };
128
+ export { TaskEntry as a, TaskConfigItem as i, CiConfig as n, TasksConfig as o, CiPin as r, CiAggregatePoster as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@theholocron/astromech",
3
- "version": "5.0.0-alpha.521",
3
+ "version": "5.0.0-alpha.523",
4
4
  "description": "The Holocron task runner — one task manifest drives `holocron run`, `holocron run ci`, the CI workflows, package.json scripts, linters, and required checks.",
5
5
  "keywords": [
6
6
  "ci",
@@ -55,7 +55,7 @@
55
55
  "@commitlint/lint": "^21.2.3",
56
56
  "@commitlint/load": "^21.2.3",
57
57
  "@commitlint/types": "^21.2.3",
58
- "@theholocron/datapad": "5.0.0-alpha.521",
58
+ "@theholocron/datapad": "5.0.0-alpha.523",
59
59
  "@theholocron/fs-utils": "^1.17.0-alpha.5",
60
60
  "@theholocron/json-utils": "^1.17.0-alpha.5",
61
61
  "@theholocron/misc-utils": "^1.17.0-alpha.5",
@@ -73,12 +73,12 @@
73
73
  "tsdown": "^0.23.7",
74
74
  "typescript": "^6.0.3",
75
75
  "vitest": "^5.1.0",
76
- "@theholocron/commitlint-config": "^8.9.0-alpha.22",
77
76
  "@theholocron/ci": "1.0.0",
78
- "@theholocron/eslint-config": "^8.9.0-alpha.22",
79
77
  "@theholocron/rollup-plugin-transform-template": "^8.9.0-alpha.22",
80
- "@theholocron/vitest-config": "^8.9.0-alpha.22",
78
+ "@theholocron/eslint-config": "^8.9.0-alpha.22",
81
79
  "@theholocron/tsconfig": "^8.9.0-alpha.22",
80
+ "@theholocron/vitest-config": "^8.9.0-alpha.22",
81
+ "@theholocron/commitlint-config": "^8.9.0-alpha.22",
82
82
  "@theholocron/tsdown-config": "^8.9.0-alpha.22"
83
83
  },
84
84
  "engines": {