@mark1russell7/conventions 0.52.1 → 0.52.2
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/README.md +5 -0
- package/build/cli.js +1 -1
- package/build/index.d.ts +143 -45
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -2
- package/build/{run-BkkhkBof.js → run-z_zuxE9M.js} +513 -90
- package/build/run-z_zuxE9M.js.map +1 -0
- package/package.json +1 -1
- package/build/run-BkkhkBof.js.map +0 -1
package/README.md
CHANGED
|
@@ -23,6 +23,7 @@ Each break shows the file, the line, the rule and the fix. In GitHub Actions, th
|
|
|
23
23
|
`conventions fix` writes the fixes that the rules know, and checks again. It continues until no fix applies. Each fix is an exact change of a file, and the fix writes it only when the file did not change after the check. These breaks have a fix:
|
|
24
24
|
|
|
25
25
|
- `runner-budget`: the minute of a schedule, a `max-parallel` of a matrix, and a concurrency group at the top of a workflow. A new run of a pull request stops the old run. A run of another event waits for the old run.
|
|
26
|
+
- `runner-peak`: the jobs that the workflows of a repository hold at one time in a busy minute, against the share of the repository. The rule is off until the option `share` is set.
|
|
26
27
|
- `main-runs-finish`: a `cancel-in-progress: true` or a concurrency group that ends with `${{ github.ref }}`, in a workflow that starts on `push`, `workflow_call` or `workflow_run`. The rule does not examine the group of a workflow that starts only on `workflow_run`. The fix writes `${{ github.event_name == 'pull_request' }}` and `${{ github.event_name == 'pull_request' && github.ref || github.sha }}`.
|
|
27
28
|
- `push-main-only`: a workflow that starts on `push` and on `pull_request`, with no limit of `push` to the default branch or with no `workflow_dispatch`. The fix adds `branches` and `workflow_dispatch`, and keeps the comments and each other trigger. It keeps a tag run when the workflow reads the tag. It does not edit `release.yml`, and a person chooses the change for `branches-ignore` or for another named branch.
|
|
28
29
|
- `pipe-fails`: a step with a pipe and no `pipefail`. The fix adds `defaults: { run: { shell: bash } }` to the workflow. It does not write over another shell.
|
|
@@ -67,6 +68,7 @@ The rules come from the invariants audit of 2026-10-26 (strategy item s38). The
|
|
|
67
68
|
| `roadmap-parses` | Each call of the Pages workflow of the template (`reusable-pages.yml`) gives a `roadmap`, or `site-pages: false`. Without it, the Status page shows no item of the plan. Each roadmap that a workflow gives to the Status page (a `roadmap:` key) parses as `@mark1russell7/site-pages` reads it. The rule uses the parser of site-pages. Thus a pull request finds a bad row, and the Pages job on `main` does not stop on it. | private `fail-closed` (a decision of 2026-10-30). |
|
|
68
69
|
| `workflow-parses` | Each workflow of `.github/workflows` and each file `action.yml` of `.github/actions` parses as YAML, with the parser of the package `yaml`. GitHub refuses a workflow that does not parse, and starts no job. A workflow that starts only on a schedule, a dispatch or `workflow_run` does not start on its pull request. So the rule finds its fault before the merge. The break names the first fault of each file. | layout-contract `memory-probe.yml`, run 42172612147 (2026-11-06). |
|
|
69
70
|
| `runner-budget` | The repositories of each owner share the runners of its plan: 40 for the personal account, 60 for the organization (`OWNERS`). Each `strategy` with a `matrix` has a `max-parallel` of 3 or less. Each workflow has a concurrency group at the top or in each job. A job that calls a shared workflow of the option `grouped` gets its group from that workflow, and each job of that workflow has a group. The minute of each `cron` comes from a hash of the repository and the file (1 to 59), so the schedules of the repositories do not start together. The repository comes from `GITHUB_REPOSITORY` or from the remote `origin`. | private `runner-slots` (a decision of 2026-10-30). |
|
|
71
|
+
| `runner-peak` | The workflows of a repository hold at most its share of the runners in a busy minute. The peak of a job is the jobs of one run (a matrix, capped by its `max-parallel`, or a called workflow with its own jobs) times the runs that its concurrency group lets run at one time. A group of the commit or the run, or no group, gives the option `burst` of runs on `push` and on pull requests. A group of the branch gives one run on `push` and a burst of pull requests. A group with no expression gives one run. A job with an `if` that is false on an event does not count on it. The peak of a workflow is the sum of its classes of events (push, pull request, other). The sum over the jobs is an upper bound, because a job that `needs` another job does not run at the same time. The function `workflowPeaks` gives the same numbers to other tools. | private `runner-slots` (a decision of 2026-10-30), and a wait of 15.9 minutes for a runner on 2026-11-24. |
|
|
70
72
|
| `main-runs-finish` | A workflow that starts on `push`, `workflow_call` or `workflow_run` does not cancel a run in progress. A called workflow gets the event of its caller. A run of `workflow_run` is a run of the default branch. A newer push cancels only the run of a pull request: `cancel-in-progress: ${{ github.event_name == 'pull_request' }}`. A run of `push` or `workflow_call` has the concurrency group of its commit: `${{ github.event_name == 'pull_request' && github.ref || github.sha }}`. GitHub gives a run of `workflow_run` the last commit of the default branch, so the rule does not examine its group: a newer run that takes the place of a waiting run tests the same commit or a newer one. In one group, GitHub cancels a run that waits when a newer run comes, whatever `cancel-in-progress` says. On 2026-11-03 four waiting CI runs of `main` in client were cancelled, so its version commit had no result and no release. On 2026-11-03 the next merge cancelled the CI run of a commit on `main`, so the main check of that commit had no result. A bench run on `main` was cancelled too, and its claim had no measurement. | private `main-runs-finish` (a decision of 2026-11-03). |
|
|
71
73
|
| `push-main-only` | A workflow that starts on `push` and on `pull_request` limits `push` to the default branch with `branches`, and has `workflow_dispatch`. Without the limit, each commit of a pull request starts two runs. A `push` with only a tag filter, a `pull_request` with `types` that do not have `synchronize`, and `pull_request_target` are not breaks. `CI.md` tells each case in "One run for each commit". |
|
|
72
74
|
| `pipe-fails` | A failure on the left of a pipe fails its step. With no `shell` key, GitHub has no `pipefail`, so `tests \| tee out.txt` passes when the tests fail. The fix adds `shell: bash` as the default of the workflow. A step that then turns red had a failure that the pipe hid. |
|
|
@@ -165,6 +167,9 @@ An unknown rule, an unknown option, or an exception or a changed option without
|
|
|
165
167
|
| `runner-budget.maxParallel` | `3` | The largest `max-parallel` of a matrix. |
|
|
166
168
|
| `runner-budget.minute` | `true` | When `false`, the rule does not examine the minute of the schedules. |
|
|
167
169
|
| `runner-budget.grouped` | `["reusable-ai-review.yml", "reusable-codex-review.yml"]` | The shared workflows that give a concurrency group in each of their jobs. |
|
|
170
|
+
| `runner-peak.share` | `0` | The most jobs that the workflows of the repository hold at one time in a busy minute. `0` turns the rule off. |
|
|
171
|
+
| `runner-peak.burst` | `5` | The runs of `push`, or of pull requests, that start in a busy minute when each run has its own group. |
|
|
172
|
+
| `runner-peak.called` | the shared workflows of the template, as `<file>=<jobs>` | The jobs of each run of a called workflow of another repository. A call of a workflow that is not in the list counts 1. |
|
|
168
173
|
| `gate-trigger.allow` | `[]` | The file names of the workflows that can filter pull requests by path, because they are not a gate (for example a preview). |
|
|
169
174
|
| `summary-job.gates` | `["ci.yml", "security.yml"]` | The file names of the gate workflows that must have a summary job. |
|
|
170
175
|
| `push-main-only.branches` | `[]` | More branches that `on.push.branches` can name, for example a long-lived release branch. |
|
package/build/cli.js
CHANGED
package/build/index.d.ts
CHANGED
|
@@ -794,50 +794,6 @@ export declare const roadmapParses: Rule;
|
|
|
794
794
|
*/
|
|
795
795
|
export declare function scheduleMinute(repository: string, file: string): number;
|
|
796
796
|
export declare const runnerBudget: Rule;
|
|
797
|
-
/** The answer for one URL: the text of the file, or the reason why there is no text. */
|
|
798
|
-
type HomeAnswer = {
|
|
799
|
-
readonly text: string;
|
|
800
|
-
} | {
|
|
801
|
-
readonly error: string;
|
|
802
|
-
};
|
|
803
|
-
/** A function that downloads each URL, and gives the answer for each URL. */
|
|
804
|
-
type HomeFetch = (urls: readonly string[]) => ReadonlyMap<string, HomeAnswer>;
|
|
805
|
-
/** The time in milliseconds that the rule waits for one home. A home that does not answer in this time is a break. */
|
|
806
|
-
export declare const HOME_TIMEOUT_MS = 3e4;
|
|
807
|
-
/** This function downloads each URL in one child process of Node. Each download stops after `HOME_TIMEOUT_MS`. */
|
|
808
|
-
export declare const githubFetch: HomeFetch;
|
|
809
|
-
/** This function gives the SHA-256 of the lines of a block: the lines with LF line ends, and a last LF. */
|
|
810
|
-
export declare const blockHash: (body: readonly string[]) => string;
|
|
811
|
-
/** This function makes the rule with the download function `fetchHomes`. The tests give a fake function. */
|
|
812
|
-
export declare function sharedDocsRule(fetchHomes?: HomeFetch): Rule;
|
|
813
|
-
/** This function gives each path in the value of an entry field (a string, or the strings in an object). */
|
|
814
|
-
export declare function pathsOf(value: unknown): string[];
|
|
815
|
-
/** This function tells if a path is a source file: a file in `src/`, or a TypeScript file that is not a declaration file. */
|
|
816
|
-
export declare function isSourcePath(path: string): boolean;
|
|
817
|
-
export declare const sourceMain: Rule;
|
|
818
|
-
export declare const testsRequired: Rule;
|
|
819
|
-
/** This function tells if git tracks a test file in the package folder `folder` (`""` is the root). */
|
|
820
|
-
export declare function hasTests(files: readonly string[], folder: string): boolean;
|
|
821
|
-
export declare const tsconfigTest: Rule;
|
|
822
|
-
/** This function gives the configs that one `typecheck` script examines, relative to the folder of the package. */
|
|
823
|
-
export declare function configsOfScript(script: string): string[];
|
|
824
|
-
/**
|
|
825
|
-
* This function gives the text of the script `name` and of each script of the same package that it
|
|
826
|
-
* starts (`pnpm run typecheck:scripts`), once each.
|
|
827
|
-
*/
|
|
828
|
-
export declare function scriptsOf(scripts: Readonly<Record<string, unknown>>, name: string, seen?: Set<string>): string[];
|
|
829
|
-
export declare const typedFiles: Rule;
|
|
830
|
-
export declare const typedScripts: Rule;
|
|
831
|
-
/** The scopes that the release train updates. The train checks the provenance of their versions itself. */
|
|
832
|
-
export declare const TRAIN_SCOPES: readonly ["@mark1russell7/*", "@procedures/*"];
|
|
833
|
-
/** 7 days, in minutes. */
|
|
834
|
-
export declare const IGNORE_AFTER = 10080;
|
|
835
|
-
export declare const trustPolicy: Rule;
|
|
836
|
-
/** This function gives the versions that a title names, in their order, each one time. */
|
|
837
|
-
export declare function namedVersions(title: string): string[];
|
|
838
|
-
/** This function gives the versions that the change from `from` to `to` sets: each `package.json` whose version changes. */
|
|
839
|
-
export declare function setVersions(context: RuleContext, from: string, to: string): string[] | undefined;
|
|
840
|
-
export declare const versionTitle: Rule;
|
|
841
797
|
interface WorkflowInput {
|
|
842
798
|
readonly name: string;
|
|
843
799
|
readonly type: string;
|
|
@@ -919,9 +875,18 @@ interface ParsedConcurrency {
|
|
|
919
875
|
/** The value of `cancel-in-progress`: true, false, or the text of an expression. No key is false, as GitHub reads it. */
|
|
920
876
|
readonly cancelInProgress: boolean | string;
|
|
921
877
|
}
|
|
878
|
+
/**
|
|
879
|
+
* The line (from 1) of each key of a map, by its path of keys: `strategy` and `strategy.max-parallel`. The path goes two
|
|
880
|
+
* keys deep. A rule gives the line of a break, and the line that an edit changes, from it.
|
|
881
|
+
*/
|
|
882
|
+
type KeyLines = Readonly<Record<string, number>>;
|
|
922
883
|
/** A job of a workflow, as the YAML parser reads it. */
|
|
923
884
|
interface ParsedJob {
|
|
924
885
|
readonly id: string;
|
|
886
|
+
/** The line (from 1) of the id of the job. */
|
|
887
|
+
readonly line: number;
|
|
888
|
+
/** The line of each key of the job, two keys deep. */
|
|
889
|
+
readonly lines: KeyLines;
|
|
925
890
|
/** The value of `name`, or the id. The Actions API names each run of a matrix job by this text and its matrix values. */
|
|
926
891
|
readonly name: string;
|
|
927
892
|
/** The `strategy.max-parallel` of the job: a number, or null when the job has none or an expression gives it. GitHub then runs the jobs of the matrix with no limit of the file. */
|
|
@@ -958,6 +923,8 @@ interface ParsedWorkflow {
|
|
|
958
923
|
/** The secrets that each part of the file reads, with each job. */
|
|
959
924
|
readonly secrets: readonly string[];
|
|
960
925
|
readonly jobs: readonly ParsedJob[];
|
|
926
|
+
/** The line of each key at the top of the file, two keys deep: `jobs`, `on.push`. A file with a fault gives none. */
|
|
927
|
+
readonly lines: KeyLines;
|
|
961
928
|
/**
|
|
962
929
|
* The faults of the file. GitHub starts no job of a file that does not parse, so a file with a fault gives no trigger
|
|
963
930
|
* and no job. A gate fails on each fault. The reader also refuses two documents in one file. It refuses a version of
|
|
@@ -972,6 +939,106 @@ export declare const MATRIX_EXPAND_MAX: number;
|
|
|
972
939
|
* problem is a fault of the result. A file with a fault gives no trigger and no job.
|
|
973
940
|
*/
|
|
974
941
|
export declare function parseWorkflow(file: string, text: string): ParsedWorkflow;
|
|
942
|
+
/** The jobs of a matrix that the reader cannot count and that has no `max-parallel`: the most that the rule runner-budget lets run. */
|
|
943
|
+
export declare const UNKNOWN_MATRIX_JOBS = 3;
|
|
944
|
+
/** The kinds of events in a busy minute: a burst of merges (`push`), a burst of pull requests, and one run of each other event. */
|
|
945
|
+
type EventClass = "push" | "pull" | "other";
|
|
946
|
+
/** This function gives the class of an event, or undefined for `workflow_call`: the caller counts the jobs of a called workflow. */
|
|
947
|
+
export declare function eventClass(event: string): EventClass | undefined;
|
|
948
|
+
/** The facts that the peak needs. */
|
|
949
|
+
interface PeakOptions {
|
|
950
|
+
/** The runs of one class of `push` or of pull requests that start in a busy minute. */
|
|
951
|
+
readonly burst: number;
|
|
952
|
+
/** The jobs of each run of a called workflow of another repository, by its file name (`reusable-ci.yml`). */
|
|
953
|
+
readonly called: Readonly<Record<string, number>>;
|
|
954
|
+
}
|
|
955
|
+
/** The peak of one job: the jobs of one run, and the runs at one time. */
|
|
956
|
+
interface JobPeak {
|
|
957
|
+
readonly id: string;
|
|
958
|
+
readonly line: number;
|
|
959
|
+
readonly jobs: number;
|
|
960
|
+
readonly runs: number;
|
|
961
|
+
/** False when the reader could not count the jobs: a call of an unknown workflow counts 1. */
|
|
962
|
+
readonly known: boolean;
|
|
963
|
+
}
|
|
964
|
+
/** The peak of a workflow: the most jobs at one time over its events, and the event and the jobs that give it. */
|
|
965
|
+
interface WorkflowPeak {
|
|
966
|
+
readonly file: string;
|
|
967
|
+
readonly peak: number;
|
|
968
|
+
/** The peak of each class of events. The peak of the workflow is their sum. */
|
|
969
|
+
readonly classes: Readonly<Partial<Record<EventClass, {
|
|
970
|
+
readonly event: string;
|
|
971
|
+
readonly peak: number;
|
|
972
|
+
readonly jobs: readonly JobPeak[];
|
|
973
|
+
}>>>;
|
|
974
|
+
}
|
|
975
|
+
/**
|
|
976
|
+
* This function gives the runs of a concurrency group that run at one time on the event. A group that depends on the commit
|
|
977
|
+
* or the run, or no group, gives a burst on `push` and on pull requests. A group of the branch gives one run on `push` (the
|
|
978
|
+
* default branch) and a burst of pull requests. Each other event gives one run.
|
|
979
|
+
*/
|
|
980
|
+
export declare function runsAtOnce(concurrency: ParsedConcurrency | null, event: string, burst: number): number;
|
|
981
|
+
/** This function gives the jobs of one run of a job that calls no workflow: 1, or the jobs of its matrix that run together. */
|
|
982
|
+
export declare function matrixPeak(job: ParsedJob): number;
|
|
983
|
+
/**
|
|
984
|
+
* This function gives the peak of each workflow of a repository in a busy minute. In each class of events, it takes the
|
|
985
|
+
* event with the most jobs. The peak of a job is its jobs of one run times the runs of its group (the group at the top of
|
|
986
|
+
* the file, else the group of the job). The sum over the jobs is an upper bound: a job that `needs` another job does not
|
|
987
|
+
* run at the same time as it.
|
|
988
|
+
*/
|
|
989
|
+
export declare function workflowPeaks(workflows: readonly ParsedWorkflow[], options: PeakOptions): WorkflowPeak[];
|
|
990
|
+
/** This function reads the option `called`: a list of `<file>=<jobs>`. A pair that does not parse is left out. */
|
|
991
|
+
export declare function calledJobs(values: readonly string[]): Record<string, number>;
|
|
992
|
+
/**
|
|
993
|
+
* The jobs of each run of the shared workflows of the template, on the event with the most jobs. A test of the template
|
|
994
|
+
* computes them from its files, so a change of a shared workflow changes this list.
|
|
995
|
+
*/
|
|
996
|
+
export declare const TEMPLATE_CALLED: readonly string[];
|
|
997
|
+
export declare const runnerPeak: Rule;
|
|
998
|
+
/** The answer for one URL: the text of the file, or the reason why there is no text. */
|
|
999
|
+
type HomeAnswer = {
|
|
1000
|
+
readonly text: string;
|
|
1001
|
+
} | {
|
|
1002
|
+
readonly error: string;
|
|
1003
|
+
};
|
|
1004
|
+
/** A function that downloads each URL, and gives the answer for each URL. */
|
|
1005
|
+
type HomeFetch = (urls: readonly string[]) => ReadonlyMap<string, HomeAnswer>;
|
|
1006
|
+
/** The time in milliseconds that the rule waits for one home. A home that does not answer in this time is a break. */
|
|
1007
|
+
export declare const HOME_TIMEOUT_MS = 3e4;
|
|
1008
|
+
/** This function downloads each URL in one child process of Node. Each download stops after `HOME_TIMEOUT_MS`. */
|
|
1009
|
+
export declare const githubFetch: HomeFetch;
|
|
1010
|
+
/** This function gives the SHA-256 of the lines of a block: the lines with LF line ends, and a last LF. */
|
|
1011
|
+
export declare const blockHash: (body: readonly string[]) => string;
|
|
1012
|
+
/** This function makes the rule with the download function `fetchHomes`. The tests give a fake function. */
|
|
1013
|
+
export declare function sharedDocsRule(fetchHomes?: HomeFetch): Rule;
|
|
1014
|
+
/** This function gives each path in the value of an entry field (a string, or the strings in an object). */
|
|
1015
|
+
export declare function pathsOf(value: unknown): string[];
|
|
1016
|
+
/** This function tells if a path is a source file: a file in `src/`, or a TypeScript file that is not a declaration file. */
|
|
1017
|
+
export declare function isSourcePath(path: string): boolean;
|
|
1018
|
+
export declare const sourceMain: Rule;
|
|
1019
|
+
export declare const testsRequired: Rule;
|
|
1020
|
+
/** This function tells if git tracks a test file in the package folder `folder` (`""` is the root). */
|
|
1021
|
+
export declare function hasTests(files: readonly string[], folder: string): boolean;
|
|
1022
|
+
export declare const tsconfigTest: Rule;
|
|
1023
|
+
/** This function gives the configs that one `typecheck` script examines, relative to the folder of the package. */
|
|
1024
|
+
export declare function configsOfScript(script: string): string[];
|
|
1025
|
+
/**
|
|
1026
|
+
* This function gives the text of the script `name` and of each script of the same package that it
|
|
1027
|
+
* starts (`pnpm run typecheck:scripts`), once each.
|
|
1028
|
+
*/
|
|
1029
|
+
export declare function scriptsOf(scripts: Readonly<Record<string, unknown>>, name: string, seen?: Set<string>): string[];
|
|
1030
|
+
export declare const typedFiles: Rule;
|
|
1031
|
+
export declare const typedScripts: Rule;
|
|
1032
|
+
/** The scopes that the release train updates. The train checks the provenance of their versions itself. */
|
|
1033
|
+
export declare const TRAIN_SCOPES: readonly ["@mark1russell7/*", "@procedures/*"];
|
|
1034
|
+
/** 7 days, in minutes. */
|
|
1035
|
+
export declare const IGNORE_AFTER = 10080;
|
|
1036
|
+
export declare const trustPolicy: Rule;
|
|
1037
|
+
/** This function gives the versions that a title names, in their order, each one time. */
|
|
1038
|
+
export declare function namedVersions(title: string): string[];
|
|
1039
|
+
/** This function gives the versions that the change from `from` to `to` sets: each `package.json` whose version changes. */
|
|
1040
|
+
export declare function setVersions(context: RuleContext, from: string, to: string): string[] | undefined;
|
|
1041
|
+
export declare const versionTitle: Rule;
|
|
975
1042
|
/** A file that GitHub reads as YAML: a workflow, or the file `action.yml` of an action of the repository. */
|
|
976
1043
|
export declare const GITHUB_YAML: RegExp;
|
|
977
1044
|
export declare const workflowParses: Rule;
|
|
@@ -1149,6 +1216,37 @@ interface HookOptions {
|
|
|
1149
1216
|
* In CI or outside a git repository, it writes one line and does nothing.
|
|
1150
1217
|
*/
|
|
1151
1218
|
export declare function installHook(options: HookOptions, io: Pick<CliIo, "stdout" | "stderr">): number;
|
|
1219
|
+
/**
|
|
1220
|
+
* A small reader of the expressions of GitHub Actions (`${{ ... }}`) for one event. It answers two questions of the runner
|
|
1221
|
+
* budget. The first question: which parts of a run does a concurrency group depend on (the branch, the commit or the run)?
|
|
1222
|
+
* The second question: can a job run on an event (its `if`)? The reader knows the literals, the contexts, the operators
|
|
1223
|
+
* (`!`, `==`, `!=`, `<`, `<=`, `>`, `>=`, `&&`, `||`), the brackets and the calls of functions. It does not know the value of
|
|
1224
|
+
* a context, except `github.event_name`, and if `github.head_ref` is empty.
|
|
1225
|
+
*/
|
|
1226
|
+
/**
|
|
1227
|
+
* A part of a run that a value depends on. `ref` is the branch or the pull request, and `commit` is the commit. `run` is
|
|
1228
|
+
* the run (`github.run_id`), `input` is an input of the run, and `other` is another context.
|
|
1229
|
+
*/
|
|
1230
|
+
type RunPart = "ref" | "commit" | "run" | "input" | "other";
|
|
1231
|
+
/** A value of an expression: its parts, and if it is truthy (true, false, or unknown). */
|
|
1232
|
+
interface ExpressionValue {
|
|
1233
|
+
readonly parts: ReadonlySet<RunPart>;
|
|
1234
|
+
readonly truthy: boolean | undefined;
|
|
1235
|
+
/** The text of a value that the reader knows, for `==` and `!=`. */
|
|
1236
|
+
readonly text?: string;
|
|
1237
|
+
}
|
|
1238
|
+
/** This function reads an expression on the event. It gives undefined when the expression does not parse. */
|
|
1239
|
+
export declare function evaluateExpression(body: string, event: string): ExpressionValue | undefined;
|
|
1240
|
+
/**
|
|
1241
|
+
* This function gives the parts of a run that a concurrency group depends on, on the event. A group with no expression
|
|
1242
|
+
* depends on no part: all runs share it. An expression that does not parse depends on the run, so each run has its own group.
|
|
1243
|
+
*/
|
|
1244
|
+
export declare function groupParts(group: string, event: string): ReadonlySet<RunPart>;
|
|
1245
|
+
/**
|
|
1246
|
+
* This function tells if a job with the condition `condition` (an `if`, with or with no `${{ }}`) can run on the event.
|
|
1247
|
+
* It is false only when the condition is false on each run of the event.
|
|
1248
|
+
*/
|
|
1249
|
+
export declare function mayRun(condition: string, event: string): boolean;
|
|
1152
1250
|
/** The names of the values that each home package exports, with the version that the names come from. */
|
|
1153
1251
|
export declare const HOME_EXPORTS: Readonly<Record<string, {
|
|
1154
1252
|
readonly version: string;
|
|
@@ -1179,5 +1277,5 @@ export declare function npmUrl(name: string, version: string): string;
|
|
|
1179
1277
|
* link to npm. The Releases page of `site-pages` reads each list item as a change.
|
|
1180
1278
|
*/
|
|
1181
1279
|
export declare function releaseNotes(name: string, version: string, changelog: string | undefined): string;
|
|
1182
|
-
export { type Advisory, type AllowedHit, type AuditSource, type Break, type CheckOptions, type CheckResult, type CliIo, type ConventionsConfig, type Edit, type FixResult, type HiddenFailure, type Home, type HomeAnswer, type HomeFetch, type HomeModule, type HomeState, type HookOptions, type LinePlace, type Manifest, type Minor, type ModuleUse, type NameHit, type NameRule, type NpmDrift, type NpmDriftKind, type NpmPresence, OWNERS, type OptionSpec, type OptionValue, type Options, type Owner, type PackageInfo, type PagesCall, type ParsedConcurrency, type ParsedJob, type ParsedStep, type ParsedWorkflow, type PathFilter, type PrePushArgs, type PrePushOptions, type PrivateNameList, type PrivatePattern, type PrivateSources, type RegistryAnswer, type RegistryLookup, type RepoRef, type Rule, type RuleConfig, type RuleContext, type RuleOutcome, type RuleResult, type SecurityCaller, type SummaryJob, type TextBreakOptions, type Workflow, type WorkflowInput, type WorkflowJob, type WorkflowPermissions, type WorkflowStep, type YamlFault, globFolders, globToRegExp, isWorkspaceFolder, ownerOf, ownersOf, packageFolders, parseWorkspaceGlobs, repoKeyer, sharedNames, workspaceGlobs };
|
|
1280
|
+
export { type Advisory, type AllowedHit, type AuditSource, type Break, type CheckOptions, type CheckResult, type CliIo, type ConventionsConfig, type Edit, type EventClass, type ExpressionValue, type FixResult, type HiddenFailure, type Home, type HomeAnswer, type HomeFetch, type HomeModule, type HomeState, type HookOptions, type JobPeak, type KeyLines, type LinePlace, type Manifest, type Minor, type ModuleUse, type NameHit, type NameRule, type NpmDrift, type NpmDriftKind, type NpmPresence, OWNERS, type OptionSpec, type OptionValue, type Options, type Owner, type PackageInfo, type PagesCall, type ParsedConcurrency, type ParsedJob, type ParsedStep, type ParsedWorkflow, type PathFilter, type PeakOptions, type PrePushArgs, type PrePushOptions, type PrivateNameList, type PrivatePattern, type PrivateSources, type RegistryAnswer, type RegistryLookup, type RepoRef, type Rule, type RuleConfig, type RuleContext, type RuleOutcome, type RuleResult, type RunPart, type SecurityCaller, type SummaryJob, type TextBreakOptions, type Workflow, type WorkflowInput, type WorkflowJob, type WorkflowPeak, type WorkflowPermissions, type WorkflowStep, type YamlFault, globFolders, globToRegExp, isWorkspaceFolder, ownerOf, ownersOf, packageFolders, parseWorkspaceGlobs, repoKeyer, sharedNames, workspaceGlobs };
|
|
1183
1281
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/rule.ts","../src/config.ts","../src/rules/cue-preset.ts","../src/rules/gate-after-cancel.ts","../src/rules/gate-trigger.ts","../src/rules/security-gate.ts","../src/rules/security-one-job.ts","../src/rules/summary-job.ts","../src/rules/setup-cue.ts","../src/rules/shared-ci.ts","../src/rules/service-run-main.ts","../src/map.ts","../src/rules/home-module.ts","../src/rules/home-package.ts","../src/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/pack-no-buildinfo.ts","../src/rules/publish-text-safe.ts","../src/rules/exports-require.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/site-check-in-ci.ts","../src/rules/pinned-git-deps.ts","../src/rules/pipe-fails.ts","../src/rules/job-fails.ts","../src/rules/playwright-install.ts","../src/rules/push-main-only.ts","../src/rules/unreleased-change.ts","../src/rules/published-minor.ts","../src/rules/release-files.ts","../src/rules/required-scripts.ts","../src/rules/roadmap-parses.ts","../src/rules/runner-budget.ts","../src/rules/shared-docs.ts","../src/rules/source-main.ts","../src/rules/tests-required.ts","../src/rules/tsconfig-test.ts","../src/rules/typed-files.ts","../src/rules/typed-scripts.ts","../src/rules/trust-policy.ts","../src/rules/version-title.ts","../src/
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/rule.ts","../src/config.ts","../src/rules/cue-preset.ts","../src/rules/gate-after-cancel.ts","../src/rules/gate-trigger.ts","../src/rules/security-gate.ts","../src/rules/security-one-job.ts","../src/rules/summary-job.ts","../src/rules/setup-cue.ts","../src/rules/shared-ci.ts","../src/rules/service-run-main.ts","../src/map.ts","../src/rules/home-module.ts","../src/rules/home-package.ts","../src/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/pack-no-buildinfo.ts","../src/rules/publish-text-safe.ts","../src/rules/exports-require.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/site-check-in-ci.ts","../src/rules/pinned-git-deps.ts","../src/rules/pipe-fails.ts","../src/rules/job-fails.ts","../src/rules/playwright-install.ts","../src/rules/push-main-only.ts","../src/rules/unreleased-change.ts","../src/rules/published-minor.ts","../src/rules/release-files.ts","../src/rules/required-scripts.ts","../src/rules/roadmap-parses.ts","../src/rules/runner-budget.ts","../src/workflow.ts","../src/rules/runner-peak.ts","../src/rules/shared-docs.ts","../src/rules/source-main.ts","../src/rules/tests-required.ts","../src/rules/tsconfig-test.ts","../src/rules/typed-files.ts","../src/rules/typed-scripts.ts","../src/rules/trust-policy.ts","../src/rules/version-title.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/run.ts","../src/pre-push.ts","../src/workflow-expression.ts","../src/home-exports.ts","../src/release-text.ts"],"mappings":";;;;;;;;;;;;;;;;;;UASiB;WACN;WACA;WACA;;;UAIM;;WAEN;;WAEA;WACA;;WAEA;;WAEA,iBAAiB;;;;;;UAOX;;WAEN;;WAEA;;WAEA;;;wBAIK,YAAY,cAAc,cAAc;;KAQ5C;;KAGA,UAAU,SAAS,eAAe;;UAG7B;WACN;WACA,SAAS;WACT;;;KAIC,WAAW,SAAS;;UAGf;;WAEN;;WAEA;;WAEA;;WAEA;WACA,UAAU;;;UAIJ;;WAEN;;WAEA,aAAa;;WAEb,mBAAmB;;WAEnB,KAAK,SAAS;;WAEd;;WAEA;;EAET;;EAEA,IAAI;;;;;;EAMJ,SAAS;;;wBAIK,UAAU,SAAS,KAAK,iCAAiC;;KAM7D,uBAAuB;WAAqB;;;qBAG3C;;UAGI;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA,kBAAkB;;WAElB,SAAS,SAAS,eAAe;;;;;WAKjC;;;;;;;WAOA;EACT,MAAM,SAAS,aAAa,SAAS,UAAU;;;;;;EAM/C,QAAQ,SAAS,aAAa,SAAS;;;qBAO5B;;wBAGG,aAAa,UAAU,UAAU;;wBAOjC,OAAO,cAAc,gBAAgB;;wBAOrC,QAAQ,cAAc,eAAe;;qBAMxC,WAAY,gBAAgB;;qBAG5B,YAAa;;wBAGV,WAAW,cAAc;;;;;;wBASzB,WAAW;;wBA2BX,UAAU;;;;;;wBAcV,WAAW,cAAc;;;;;;wBAmBzB,kBAAkB,KAAK,YAAY;;wBAsBnC,OAAO,cAAc;;wBAOrB,mBAAmB;;qBActB,UAAW,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AAS;;WAEd;;WAEA,MAAM;;WAEN,YAAY;;;;;;;;;;;;wBA0MP,QAAQ,SAAS,gBAAgB,IAAI,KAAK;;UA6GzC;;WAEN;WACA;WACA;WACA;;;;;;wBAOK,iBAAiB,0BAA0B;;;;;wBAuB3C,eAAe,MAAM,aAAa,IAAI,KAAK;;qBAS9C;;;;;;;;qBAgCA;;UAgBI;;WAEN;WACA,KAAK,SAAS;;WAEd,MAAM;;;;;;;wBAQD,YAAY,SAAS,aAAa,IAAI,KAAK;;;;;;;;;;;;KCzc/C;;UAGK;WACN,OAAO,YAAY;WACnB;;WAEA;;;wBA8DK,mBAAmB,cAAc,gBAAgB;;;;;wBAoGjD,WAAW,eAAe,gBAAgB,YAAY;;;;;wBActD,OAAO,mBAAmB;;qBCjM7B,cAAc,SAAS;WAA0B;WAA0B;;;;;;;;;qBCM3E;;wBAGG,QAAQ,cAAc,iBAAiB;;;;;;;;wBAavC,iBAAiB,kBAAkB,iBAAiB;;wBA+BpD,OAAO,cAAc;;;;;wBAQrB,aAAa,cAAc,iBAAiB"}
|
package/build/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as requiredScripts, $n as LICENSE_TEXTS, $t as noBuildOutput, A as scriptsOf, An as SHARED_ACTIONS, Ar as parseJsonc, At as packNoBuildinfo, B as TEMPLATE_CALLED, Bn as SUMMARY_GATES, Br as parseRuleConfig, Bt as privatePatterns, C as setVersions, Cn as npmNames, Cr as codePackages, Ct as pagesAfterRelease, D as trustPolicy, Dn as serviceRunMain, Dr as lineOf, Dt as pagesSite, E as TRAIN_SCOPES, En as runCalls, Er as keyLine, Et as pagesCalls, F as sourceMain, Fn as setupCue, Fr as runGitShow, Ft as PRIVATE_PATTERNS_VARIABLE, G as runnerPeak, Gn as SECURITY_SCAN_COMMIT, Gt as isAllowedHit, H as calledJobs, Hn as hasSummaryJob, Ht as PRIVATE_NAME_LIST, I as HOME_TIMEOUT_MS, In as SECURITY_FILE, Ir as showFiles, It as invalidPatternBreaks, J as evaluateExpression, Jn as securityCallers, Jt as lineNameHits, K as runsAtOnce, Kn as SECURITY_SCAN_INPUTS, Kt as isCommonUse, L as blockHash, Ln as isSecurityGate, Lr as specifiersOf, Lt as noLocalPaths, M as testsRequired, Mn as SHARED_WORKFLOWS, Mr as replaceLine, Mt as HOME_PATTERNS, N as isSourcePath, Nn as callsSharedCi, Nr as repositoryOfRemote, Nt as PRIVATE_NAMES_FILE_CONFIG, O as typedScripts, On as hasTests, Or as matchesAny, Ot as exportsRequire, P as pathsOf, Pn as sharedCi, Pr as runGit, Pt as PRIVATE_NAMES_FILE_VARIABLE, Q as roadmapParses, Qn as scheduleMinute, Qt as pathNameHit, R as githubFetch, Rn as securityGate, Rr as defaultOptions, Rt as privateNamesFile, S as namedVersions, Sn as npmDrift, Sr as cleanPath, St as siteCheckInCi, T as IGNORE_AFTER, Tn as SERVICE_PACKAGE, Tr as inFolder, Tt as PAGES_WORKFLOWS, U as eventClass, Un as startsOnPullRequest, Ut as PrivateNameListError, V as UNKNOWN_MATRIX_JOBS, Vn as addSummaryJob, Vt as privateTextBreaks, W as matrixPeak, Wn as summaryJobRule, Wt as firstNameMatch, X as mayRun, Xn as withOneJob, Xt as nameMatches, Y as groupParts, Yn as securityOneJob, Yt as mergePrivateNames, Z as roadmapOfLine, Zn as runnerBudget, Zt as parsePrivateNames, _ as runPrePushArgs, _n as MAP_RULE, _r as yamlFaults, _t as swallowsTests, a as listRules, an as homeModule, ar as ACTIONS_COMMIT, at as reachOf, b as GITHUB_YAML, bn as mapText, br as DEPENDENCY_FIELDS, bt as isPinned, c as runCli, cn as modulesOf, cr as prPathFilters, ct as UNSHIPPED_FILES, d as HOOK_MARKER, dn as messageOf, dr as summaryName, dt as unreleasedChangeRule, en as REAL_COMPARE, er as authorOf, et as releaseFiles, f as NO_READ_LINE, fn as repoOf, fr as gateAfterCancel, ft as playwrightInstall, g as prePush, gn as HOMES, gr as readWorkflow, gt as startsTests, h as parsePrePushArgs, hn as HOME_EXPORTS, hr as readAction, ht as parseAdvisory, i as formatResult, in as apiReportScript, ir as repositoryIsPublic, it as publishedMinorRule, j as typedFiles, jn as SHARED_CI, jr as readJsonc, jt as DEFAULT_ALLOWED, k as configsOfScript, kn as tsconfigTest, kr as parseCatFileBatch, kt as publishTextSafe, l as runFix, ln as declaredName, lr as skippableJobs, lt as npmLookup, m as installHook, mn as signaturesOf, mr as parseWorkflow, mt as jobFails, n as annotations, nn as mainCheck, nr as licenseFileOf, nt as minorOf, o as readConfig, on as moduleMessage, or as convertGate, ot as NPM_REGISTRY, p as PRE_PUSH_HOOK, pn as reposOf, pr as MATRIX_EXPAND_MAX, pt as hiddenFailures, q as workflowPeaks, qn as SECURITY_TIMEOUT_MINUTES, qt as lineNameHit, r as createContext, rn as coverageProvider, rr as mitText, rt as publishedMinor, s as runChecks, sn as moduleUses, sr as gateTrigger, st as SHIPPED_FIELDS, t as USAGE, tn as hasImportMetaMain, tr as licenseFile, tt as lockedVersions, u as summaryMarkdown, un as homePackage, ur as summaryJob, ut as unreleasedChange, v as RULES, vn as findHomes, vr as STRICT_OPTIONS, vt as pipeFails, w as versionTitle, wn as readOverlay, wr as hasFile, wt as pushMainOnly, x as workflowParses, xn as mergeHomes, xr as RULE_WARN_DAYS, xt as pinnedGitDeps, y as workspaceProtocol, yn as mapMarkdown, yr as cuePreset, yt as isGitSpecifier, z as sharedDocsRule, zn as securityWorkflow, zr as parseConfig, zt as privateNamesFiles } from "./run-z_zuxE9M.js";
|
|
2
2
|
import { OWNERS, ownerOf, ownersOf, repoKeyer, sharedNames } from "./owners.js";
|
|
3
3
|
import { a as packageFolders, i as isWorkspaceFolder, l as workspaceGlobs, n as globFolders, o as parseWorkspaceGlobs, r as globToRegExp } from "./workspace-_CIq-8ei.js";
|
|
4
4
|
// src/release-text.ts
|
|
@@ -66,6 +66,6 @@ function releaseNotes(name, version, changelog) {
|
|
|
66
66
|
if (section.length <= 1e5) return section;
|
|
67
67
|
return `${section.slice(0, MAX_NOTES)}\n\n(The CHANGELOG.md of \`${name}\` has the full text.)`;
|
|
68
68
|
}
|
|
69
|
-
export { ACTIONS_COMMIT, DEFAULT_ALLOWED, DEPENDENCY_FIELDS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_TIMEOUT_MS, HOOK_MARKER, IGNORE_AFTER, LICENSE_TEXTS, MAP_RULE, MATRIX_EXPAND_MAX, MAX_NOTES, NO_READ_LINE, NPM_REGISTRY, OWNERS, PAGES_WORKFLOWS, PRE_PUSH_HOOK, PRIVATE_NAMES_FILE_CONFIG, PRIVATE_NAMES_FILE_VARIABLE, PRIVATE_NAME_LIST, PRIVATE_PATTERNS_VARIABLE, PrivateNameListError, REAL_COMPARE, RULES, RULE_WARN_DAYS, SECURITY_FILE, SECURITY_SCAN_COMMIT, SECURITY_SCAN_INPUTS, SECURITY_TIMEOUT_MINUTES, SERVICE_PACKAGE, SHARED_ACTIONS, SHARED_CI, SHARED_WORKFLOWS, SHIPPED_FIELDS, STRICT_OPTIONS, SUMMARY_GATES, TRAIN_SCOPES, UNSHIPPED_FILES, USAGE, addSummaryJob, annotations, apiReportScript, authorOf, blockHash, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, convertGate, coverageProvider, createContext, cuePreset, declaredName, defaultOptions, exportsRequire, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, globFolders, globToRegExp, hasFile, hasImportMetaMain, hasSummaryJob, hasTests, hiddenFailures, homeModule, homePackage, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCommonUse, isGitSpecifier, isPinned, isSecurityGate, isSourcePath, isWorkspaceFolder, jobFails, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, mergeHomes, mergePrivateNames, messageOf, minorOf, mitText, moduleMessage, moduleUses, modulesOf, nameMatches, namedVersions, noBuildOutput, noLocalPaths, npmDrift, npmLookup, npmNames, npmUrl, ownerOf, ownersOf, packNoBuildinfo, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseAdvisory, parseCatFileBatch, parseConfig, parseJsonc, parsePrePushArgs, parsePrivateNames, parseRuleConfig, parseWorkflow, parseWorkspaceGlobs, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, playwrightInstall, prPathFilters, prePush, privateNamesFile, privateNamesFiles, privatePatterns, privateTextBreaks, publishTextSafe, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readAction, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseNotes, replaceLine, repoKeyer, repoOf, reposOf, repositoryIsPublic, repositoryOfRemote, requiredScripts, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runGitShow, runPrePushArgs, runnerBudget, scheduleMinute, scriptsOf, securityCallers, securityGate, securityOneJob, securityWorkflow, serviceRunMain, setVersions, setupCue, sharedCi, sharedDocsRule, sharedNames, showFiles, signaturesOf, siteCheckInCi, skippableJobs, sourceMain, specifiersOf, startsOnPullRequest, startsTests, summaryJob, summaryJobRule, summaryMarkdown, summaryName, swallowsTests, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workspaceGlobs, workspaceProtocol, yamlFaults };
|
|
69
|
+
export { ACTIONS_COMMIT, DEFAULT_ALLOWED, DEPENDENCY_FIELDS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_TIMEOUT_MS, HOOK_MARKER, IGNORE_AFTER, LICENSE_TEXTS, MAP_RULE, MATRIX_EXPAND_MAX, MAX_NOTES, NO_READ_LINE, NPM_REGISTRY, OWNERS, PAGES_WORKFLOWS, PRE_PUSH_HOOK, PRIVATE_NAMES_FILE_CONFIG, PRIVATE_NAMES_FILE_VARIABLE, PRIVATE_NAME_LIST, PRIVATE_PATTERNS_VARIABLE, PrivateNameListError, REAL_COMPARE, RULES, RULE_WARN_DAYS, SECURITY_FILE, SECURITY_SCAN_COMMIT, SECURITY_SCAN_INPUTS, SECURITY_TIMEOUT_MINUTES, SERVICE_PACKAGE, SHARED_ACTIONS, SHARED_CI, SHARED_WORKFLOWS, SHIPPED_FIELDS, STRICT_OPTIONS, SUMMARY_GATES, TEMPLATE_CALLED, TRAIN_SCOPES, UNKNOWN_MATRIX_JOBS, UNSHIPPED_FILES, USAGE, addSummaryJob, annotations, apiReportScript, authorOf, blockHash, calledJobs, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, convertGate, coverageProvider, createContext, cuePreset, declaredName, defaultOptions, evaluateExpression, eventClass, exportsRequire, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, globFolders, globToRegExp, groupParts, hasFile, hasImportMetaMain, hasSummaryJob, hasTests, hiddenFailures, homeModule, homePackage, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCommonUse, isGitSpecifier, isPinned, isSecurityGate, isSourcePath, isWorkspaceFolder, jobFails, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, matrixPeak, mayRun, mergeHomes, mergePrivateNames, messageOf, minorOf, mitText, moduleMessage, moduleUses, modulesOf, nameMatches, namedVersions, noBuildOutput, noLocalPaths, npmDrift, npmLookup, npmNames, npmUrl, ownerOf, ownersOf, packNoBuildinfo, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseAdvisory, parseCatFileBatch, parseConfig, parseJsonc, parsePrePushArgs, parsePrivateNames, parseRuleConfig, parseWorkflow, parseWorkspaceGlobs, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, playwrightInstall, prPathFilters, prePush, privateNamesFile, privateNamesFiles, privatePatterns, privateTextBreaks, publishTextSafe, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readAction, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseNotes, replaceLine, repoKeyer, repoOf, reposOf, repositoryIsPublic, repositoryOfRemote, requiredScripts, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runGitShow, runPrePushArgs, runnerBudget, runnerPeak, runsAtOnce, scheduleMinute, scriptsOf, securityCallers, securityGate, securityOneJob, securityWorkflow, serviceRunMain, setVersions, setupCue, sharedCi, sharedDocsRule, sharedNames, showFiles, signaturesOf, siteCheckInCi, skippableJobs, sourceMain, specifiersOf, startsOnPullRequest, startsTests, summaryJob, summaryJobRule, summaryMarkdown, summaryName, swallowsTests, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workflowPeaks, workspaceGlobs, workspaceProtocol, yamlFaults };
|
|
70
70
|
|
|
71
71
|
//# sourceMappingURL=index.js.map
|