You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 919d548
Browse filesBrowse the repository at this point in the historyBrowse files
|`SettingsFile`| const | The zod schema of the whole document, and its inferred type |
100
100
|`SECTION_KEYS`| const | Every section key in execution order |
101
101
|`SectionKey`| type | One of them |
102
+
|`UNDECLARED_POLICY_SECTIONS`| const | The list sections whose wrapper takes `_undeclared`, and so `_layering`: the only places, beside the document top, a `_layering` directive may sit |
103
+
|`UndeclaredPolicySection`| type | One of them |
102
104
103
105
The schema subpath serves the committed JSON Schema.
Copy file name to clipboardExpand all lines: docs/upgrading/v2-to-v3.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Ten breaks (the ninth is for library consumers). One is silent (the fallback), s
16
16
| The three outputs are always set |`repos-result` existed only in multi-repo runs and the `snapshot-dir` form; unset elsewhere |`result`, `skipped-sections`, and `repos-result` are set on every run; `repos-result` is `{}` outside a fleet | No error. A step testing `repos-result != ''` to detect a fleet run now always passes; [section 6](#6-the-three-outputs-are-always-set)|
17
17
| One `--json` envelope on the command line |`validate` printed `{file, valid, sections}`, `permissions` a bare grant map, `init``skippedSections`| Every subcommand prints `{result, ...}`; `permissions` puts its grants under `grant`, lists are lists | A `jq` filter on the old keys reads `null`; [section 7](#7-one---json-envelope)|
18
18
| A snapshot section that fails on its own fails the target |`result: partial`, exit 0, the file written without that section |`result: failed`, exit 1, no file for that target; `init` refuses to write | The workflow step fails where it passed; [section 8](#8-a-failed-snapshot-section-fails-the-target)|
19
-
| Library: a documented public entry, an internal one, and the v3 names | One entry, 194 names; `GithubApi`, `RepoRunReport`, `validateSettings` returning `warnings`|`.` holds the 116 documented names, `./internal` the rest; `GitHubApi`, `CheckReport`, every report carries `log`| The old import fails to compile, naming the missing export; every rename is in [section 9](#9-library-the-public-entry-and-the-v3-names)|
19
+
| Library: a documented public entry, an internal one, and the v3 names | One entry, 192 names; `GithubApi`, `RepoRunReport`, `validateSettings` returning `warnings`|`.` holds the 118 documented names, `./internal` the rest; `GitHubApi`, `CheckReport`, every report carries `log`| The old import fails to compile, naming the missing export; every rename is in [section 9](#9-library-the-public-entry-and-the-v3-names)|
20
20
| One redacted label in every mode | A single-repository run labelled its hidden target `private repository`; a fleet numbered them `private repository #N`|`private repository #N` everywhere; a run over one repository is `#1`| No error. A log filter or artifact-report reader matching `private repository:` exactly no longer matches; [section 10](#10-one-redacted-label-in-every-mode)|
21
21
22
22
## 1. The defaults-file fallback
@@ -130,7 +130,7 @@ The package now has two entries, and one naming family per layer:
130
130
131
131
| | v2 | v3 |
132
132
|---|---|---|
133
-
| The entry | One, 194 names, all pinned | `.`: the 116 names the [library page](../reference/library.md#the-api-by-group) tables document, under semver. `./internal`: everything else the action, the CLI, and the tests import, with no promise |
133
+
| The entry | One, 192 names, all pinned | `.`: the 118 names the [library page](../reference/library.md#the-api-by-group) tables document, under semver. `./internal`: everything else the action, the CLI, and the tests import, with no promise |
134
134
| The verbs | `checkRepository`, `applyRepository`, `snapshotRepository`, `snapshotRepositories`, `validateSettings`, plus `foldLayers` and `mergeLayers` for a merge | The same five, plus `mergeSettings`; every verb takes its inputs positionally and one options object of the same knobs (`sections`, `onMissingPermission`, `io`, ...), each defaulted as the action's input |
135
135
| The reports | `RepoRunReport` (`log`), `SnapshotReport` (`log`), `validateSettings` (`warnings: string[]`) | `CheckReport`, `ApplyReport`, `SnapshotReport`, `MergeReport`, `ValidateReport`: one `log: CollectedLine[]` on every report, the annotation level kept beside each line |
136
136
@@ -164,12 +164,12 @@ Every rename, old to new. An old name fails to compile, naming the missing expor
| `concludeSnapshot` set `repos-result` only in the dir form; `concludeMerge` set no `repos-result` | Every conclude sets the three outputs |
171
171
| `FinishedSnapshot` carried `view` / `views`: each target already projected into a `SnapshotTargetView` | `FinishedSnapshot` carries `target` / `targets`: each a `TargetOutcome` whose `detail` is sealed for a hidden target; `concludeSnapshot` opens it through `publicDetail` / `toPublicView` |
172
-
| `SnapshotTargetView` (snapshot's own public projection) | Removed; the public shape of every mode's target is `PublicTargetView`, which now carries the snapshot `file` |
172
+
| `SnapshotTargetView` (snapshot's own redacted projection) | Removed; the shared redaction-safe projection is `PublicTargetView` in `./internal`, which now carries the snapshot `file` |
0 commit comments