@mark1russell7/conventions 0.59.4 → 0.60.0

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 CHANGED
@@ -71,7 +71,7 @@ The rules come from the invariants audit of 2026-10-26 (strategy item s38). The
71
71
  | `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). |
72
72
  | `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). |
73
73
  | `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). |
74
- | `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). A job that `needs` a different job does not run at the same time as it in one run. Thus the peak of a class is the antichain with the largest weight of the graph of the needs, for each layer of runs, from `maxWeightAntichain` of `@mark1russell7/collections`. The peak is exact for that graph. 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. |
74
+ | `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 option `pushBurst` gives the burst of `push` (a burst of merges). A step of the action `give-way` holds each job after its job to its input `slots` on the events of its input `events`. The peak of a workflow is the sum of its classes of events (push, pull request, other). The repository adds the classes push and pull request of each workflow, and counts the class other one time: its largest peak. A job that `needs` a different job does not run at the same time as it in one run. Thus the peak of a class is the antichain with the largest weight of the graph of the needs, for each layer of runs, from `maxWeightAntichain` of `@mark1russell7/collections`. The peak is exact for that graph. The functions `workflowPeaks`, `repositoryPeak` and `giveWaySlots` give 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. |
75
75
  | `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). |
76
76
  | `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". |
77
77
  | `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. |
@@ -179,7 +179,8 @@ An unknown rule, an unknown option, or an exception or a changed option without
179
179
  | `runner-budget.minute` | `true` | When `false`, the rule does not examine the minute of the schedules. |
180
180
  | `runner-budget.grouped` | `["reusable-ai-review.yml", "reusable-codex-review.yml"]` | The shared workflows that give a concurrency group in each of their jobs. |
181
181
  | `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. |
182
- | `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. |
182
+ | `runner-peak.burst` | `5` | The runs of pull requests that start in a busy minute when each run has its own group. It is also the burst of `push` when `pushBurst` is `0`. |
183
+ | `runner-peak.pushBurst` | `0` | The runs of `push` (a burst of merges) that start in a busy minute when each run has its own group. `0` uses `burst`. |
183
184
  | `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. |
184
185
  | `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). |
185
186
  | `summary-job.gates` | `["ci.yml", "security.yml"]` | The file names of the gate workflows that must have a summary job. |
package/build/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { readFileSync } from "node:fs";
3
- import { c as runCli } from "./run-CrwleOgO.js";
3
+ import { c as runCli } from "./run-DOZFXGy_.js";
4
4
  // src/cli.ts
5
5
  try {
6
6
  const args = process.argv.slice(2);
package/build/index.d.ts CHANGED
@@ -980,6 +980,8 @@ interface ParsedStep {
980
980
  readonly uses: string;
981
981
  /** The secrets that the expressions of the step read. The name `*` is the whole context, as in `toJSON(secrets)`. */
982
982
  readonly secrets: readonly string[];
983
+ /** The inputs of the action of the step (`with`), each as text. An expression stays as it is. A step with no inputs has an empty map. */
984
+ readonly with: Readonly<Record<string, string>>;
983
985
  }
984
986
  /** The `concurrency` of a workflow or of a job. GitHub runs at most one run of a group, and one more run of it waits. */
985
987
  interface ParsedConcurrency {
@@ -1060,8 +1062,10 @@ type EventClass = "push" | "pull" | "other";
1060
1062
  export declare function eventClass(event: string): EventClass | undefined;
1061
1063
  /** The facts that the peak needs. */
1062
1064
  interface PeakOptions {
1063
- /** The runs of one class of `push` or of pull requests that start in a busy minute. */
1065
+ /** The runs of pull requests that start in a busy minute. It is also the runs of `push` when `pushBurst` is not given. */
1064
1066
  readonly burst: number;
1067
+ /** The runs of `push` (a burst of merges) that start in a busy minute. The default is `burst`. */
1068
+ readonly pushBurst?: number;
1065
1069
  /** The jobs of each run of a called workflow of another repository, by its file name (`reusable-ci.yml`). */
1066
1070
  readonly called: Readonly<Record<string, number>>;
1067
1071
  }
@@ -1071,6 +1075,8 @@ interface JobPeak {
1071
1075
  readonly line: number;
1072
1076
  readonly jobs: number;
1073
1077
  readonly runs: number;
1078
+ /** The `slots` of a step `give-way` in a job that the job needs, when the step holds its runs. Else undefined. */
1079
+ readonly slots?: number;
1074
1080
  /** False when the reader could not count the jobs: a call of an unknown workflow counts 1. */
1075
1081
  readonly known: boolean;
1076
1082
  }
@@ -1088,9 +1094,16 @@ interface WorkflowPeak {
1088
1094
  /**
1089
1095
  * This function gives the runs of a concurrency group that run at one time on the event. A group that depends on the commit
1090
1096
  * 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
1091
- * default branch) and a burst of pull requests. Each other event gives one run.
1097
+ * default branch) and a burst of pull requests. Each other event gives one run. The burst of `push` is `pushBurst`, and its default is `burst`.
1092
1098
  */
1093
- export declare function runsAtOnce(concurrency: ParsedConcurrency | null, event: string, burst: number): number;
1099
+ export declare function runsAtOnce(concurrency: ParsedConcurrency | null, event: string, burst: number, pushBurst?: number): number;
1100
+ /**
1101
+ * This function gives the runs at one time that a step `give-way` of the job lets past on the event: its input `slots`.
1102
+ * The default of `slots` is 1. The cap holds when the step can run on the event, and the event is in its input `events`.
1103
+ * The default of `events` is `pull_request`. The step passes after its `wait-minutes`. Thus the cap holds in a busy
1104
+ * minute, not in a long queue. A value that the reader cannot read gives no cap.
1105
+ */
1106
+ export declare function giveWaySlots(job: ParsedJob, event: string): number | undefined;
1094
1107
  /** 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. */
1095
1108
  export declare function matrixPeak(job: ParsedJob): number;
1096
1109
  /**
@@ -1100,6 +1113,12 @@ export declare function matrixPeak(job: ParsedJob): number;
1100
1113
  * peak is the sum of the antichains of the layers of runs (`layeredPeak`). The peak is exact for the graph of the needs.
1101
1114
  */
1102
1115
  export declare function workflowPeaks(workflows: readonly ParsedWorkflow[], options: PeakOptions): WorkflowPeak[];
1116
+ /**
1117
+ * This function gives the most jobs of the workflows of a repository at one time in a busy minute. The classes `push` and
1118
+ * `pull` of each workflow add up. The class `other` counts one time for the repository: one schedule or one dispatch, the
1119
+ * largest of each workflow.
1120
+ */
1121
+ export declare function repositoryPeak(peaks: readonly WorkflowPeak[]): number;
1103
1122
  /** This function reads the option `called`: a list of `<file>=<jobs>`. A pair that does not parse is left out. */
1104
1123
  export declare function calledJobs(values: readonly string[]): Record<string, number>;
1105
1124
  /**
@@ -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/release-mode.ts","../src/rules/shared-docs.ts","../src/rules/call-permissions.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/home-shapes.ts","../src/rules/home-shape.ts","../src/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/rules/no-console.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/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/io.ts","../src/pre-push.ts","../src/workflow-expression.ts","../src/home-exports.ts","../src/run.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;WACN,iBAAiB;;WAEjB;;;UAIM;;WAEN;;WAEA;;WAEA;;WAEA;WACA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BA8DK,mBAAmB,cAAc,gBAAgB;;;;;wBAoGjD,WAAW,eAAe,gBAAgB,YAAY;;;;;wBActD,OAAO,mBAAmB;;qBCjM7B,cAAc,SAAS;WAA0B;WAA0B;;;UCiBvE;WACN;WACA;WACA;;;;;WAKA;WACA,iBAAiB;;WAEjB;;WAEA;;;;;WAKA;;;UAIM;WACN,gBAAgB;;WAEhB;;;UAIM;;WAEN;;WAEA;;WAEA;WACA,MAAM,SAAS;;WAEf,iBAAiB;;WAEjB;;;wBAaK,WAAW,cAAc,iBAAgB,SAAiB;;wBAO1D,cAAc,cAAc,QAAQ,mBAAmB,UAAS,KAAK,0CAA+C;;wBAwCpH,UAAU,SAAS,eAAe;;UAuEjC;;WAEN;;WAEA;;WAEA,QAAQ;;;;;;;wBAWH,OAAO,SAAS,eAAe;;wBAyC/B,aAAa,QAAQ;;wBA4BrB,gBAAgB,QAAQ;;;;;;wBA2BxB,YAAY,QAAQ;;wBAapB,UAAU,QAAQ,+BAA+B,iBAAgB;;qBAqBpE;;wBA8EG,OAAO,yBAAyB,IAAI;;;;;;;;qBCvZvC;;wBAGG,QAAQ,cAAc,iBAAiB;;;;;;;;wBAavC,iBAAiB,kBAAkB,iBAAiB;;wBA+BpD,OAAO,cAAc;;;;;wBAQrB,aAAa,cAAc,iBAAiB"}
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/release-mode.ts","../src/rules/shared-docs.ts","../src/rules/call-permissions.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/home-shapes.ts","../src/rules/home-shape.ts","../src/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/rules/no-console.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/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/io.ts","../src/pre-push.ts","../src/workflow-expression.ts","../src/home-exports.ts","../src/run.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;WACN,iBAAiB;;WAEjB;;;UAIM;;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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;WACA;;;;;WAKA;WACA,iBAAiB;;WAEjB;;WAEA;;;;;WAKA;;;UAIM;WACN,gBAAgB;;WAEhB;;;UAIM;;WAEN;;WAEA;;WAEA;WACA,MAAM,SAAS;;WAEf,iBAAiB;;WAEjB;;;wBAaK,WAAW,cAAc,iBAAgB,SAAiB;;wBAO1D,cAAc,cAAc,QAAQ,mBAAmB,UAAS,KAAK,0CAA+C;;wBAwCpH,UAAU,SAAS,eAAe;;UAuEjC;;WAEN;;WAEA;;WAEA,QAAQ;;;;;;;wBAWH,OAAO,SAAS,eAAe;;wBAyC/B,aAAa,QAAQ;;wBA4BrB,gBAAgB,QAAQ;;;;;;wBA2BxB,YAAY,QAAQ;;wBAapB,UAAU,QAAQ,+BAA+B,iBAAgB;;qBAqBpE;;wBA8EG,OAAO,yBAAyB,IAAI;;;;;;;;qBCvZvC;;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 publishedMinor, $n as callsReleaseBuild, $r as repositoryOfRemote, $t as consoleKind, A as scriptsOf, An as mapText, Ar as summaryJob, At as PRIVATE_NAMES_FILE_VARIABLE, B as matrixPeak, Bn as SHARED_ACTIONS, Br as DEPENDENCY_FIELDS, Bt as firstNameMatch, C as setVersions, Cn as reposOf, Cr as mitText, Ct as pagesSite, D as trustPolicy, Dn as MAP_RULE, Dr as gateTrigger, Dt as DEFAULT_ALLOWED, E as TRAIN_SCOPES, En as HOMES, Er as convertGate, Et as packNoBuildinfo, F as sourceMain, Fn as SERVICE_PACKAGE, Fr as readAction, Ft as privateNamesFiles, G as groupParts, Gn as setupCue, Gr as inFolder, Gt as mergePrivateNames, H as runsAtOnce, Hn as SHARED_WORKFLOWS, Hr as cleanPath, Ht as isCommonUse, I as TEMPLATE_CALLED, In as runCalls, Ir as readWorkflow, It as privatePatterns, J as roadmapParses, Jn as HOME_TIMEOUT_MS, Jr as matchesAny, Jt as pathNameHit, K as mayRun, Kn as callPermissions, Kr as keyLine, Kt as nameMatches, L as UNKNOWN_MATRIX_JOBS, Ln as serviceRunMain, Lr as yamlFaults, Lt as privateTextBreaks, M as testsRequired, Mn as npmDrift, Mr as gateAfterCancel, Mt as invalidPatternBreaks, N as isSourcePath, Nn as npmNames, Nr as MATRIX_EXPAND_MAX, Nt as noLocalPaths, O as typedScripts, On as findHomes, Or as prPathFilters, Ot as HOME_PATTERNS, P as pathsOf, Pn as readOverlay, Pr as parseWorkflow, Pt as privateNamesFile, Q as minorOf, Qn as addReleaseMode, Qr as replaceLine, Qt as consoleGate, R as calledJobs, Rn as hasTests, Rr as STRICT_OPTIONS, Rt as PRIVATE_NAME_LIST, S as namedVersions, Sn as repoOf, Sr as licenseFileOf, St as pagesCalls, T as IGNORE_AFTER, Tn as HOME_EXPORTS, Tr as ACTIONS_COMMIT, Tt as publishTextSafe, U as workflowPeaks, Un as callsSharedCi, Ur as codePackages, Ut as lineNameHit, V as runnerPeak, Vn as SHARED_CI, Vr as RULE_WARN_DAYS, Vt as isAllowedHit, W as evaluateExpression, Wn as sharedCi, Wr as hasFile, Wt as lineNameHits, X as releaseFiles, Xn as githubFetch, Xr as parseJsonc, Xt as NOT_SOURCE, Y as requiredScripts, Yn as blockHash, Yr as parseCatFileBatch, Yt as CONSOLE_LAST_DAY, Z as lockedVersions, Zn as sharedDocsRule, Zr as readJsonc, Zt as consoleBreaks, _ as runPrePushArgs, _n as moduleUses, _r as runnerBudget, _t as pinnedGitDeps, a as listRules, ai as parseConfig, an as mainCheck, ar as securityWorkflow, at as npmLookup, b as GITHUB_YAML, bn as homePackage, br as authorOf, bt as pushMainOnly, c as runCli, cn as containedHome, cr as hasSummaryJob, ct as playwrightInstall, d as HOOK_MARKER, dn as shapeMessage, dr as SECURITY_SCAN_COMMIT, dt as parseAdvisory, ei as runGit, en as isCliFile, er as hasReleaseMode, et as publishedMinorRule, f as NO_READ_LINE, fn as shapesOfSource, fr as SECURITY_SCAN_INPUTS, ft as startsTests, g as prePush, gn as moduleMessage, gr as withOneJob, gt as isPinned, h as parsePrePushArgs, hn as homeModule, hr as securityOneJob, ht as isGitSpecifier, i as formatResult, ii as defaultOptions, in as hasImportMetaMain, ir as securityGate, it as UNSHIPPED_FILES, j as typedFiles, jn as mergeHomes, jr as summaryName, jt as PRIVATE_PATTERNS_VARIABLE, k as configsOfScript, kn as mapMarkdown, kr as skippableJobs, kt as PRIVATE_NAMES_FILE_CONFIG, l as runFix, ln as homeShape, lr as startsOnPullRequest, lt as hiddenFailures, m as installHook, mn as HOME_SHAPES, mr as securityCallers, mt as pipeFails, n as annotations, ni as showFiles, nn as noBuildOutput, nr as SECURITY_FILE, nt as NPM_REGISTRY, o as readConfig, oi as parseRuleConfig, on as coverageProvider, or as SUMMARY_GATES, ot as unreleasedChange, p as PRE_PUSH_HOOK, pn as spansOf, pr as SECURITY_TIMEOUT_MINUTES, pt as swallowsTests, q as roadmapOfLine, qn as callPermissionsRule, qr as lineOf, qt as parsePrivateNames, r as createContext, ri as specifiersOf, rn as REAL_COMPARE, rr as isSecurityGate, rt as SHIPPED_FIELDS, s as runChecks, sn as apiReportScript, sr as addSummaryJob, st as unreleasedChangeRule, t as USAGE, ti as runGitShow, tn as noConsole, tr as releaseModeRule, tt as reachOf, u as summaryMarkdown, un as homeShapesOf, ur as summaryJobRule, ut as jobFails, v as RULES, vn as modulesOf, vr as scheduleMinute, vt as siteCheckInCi, w as versionTitle, wn as signaturesOf, wr as repositoryIsPublic, wt as exportsRequire, x as workflowParses, xn as messageOf, xr as licenseFile, xt as PAGES_WORKFLOWS, y as workspaceProtocol, yn as declaredName, yr as LICENSE_TEXTS, yt as pagesAfterRelease, z as eventClass, zn as tsconfigTest, zr as cuePreset, zt as PrivateNameListError } from "./run-CrwleOgO.js";
1
+ import { $ as lockedVersions, $n as sharedDocsRule, $r as readJsonc, $t as consoleBreaks, A as scriptsOf, An as findHomes, Ar as prPathFilters, At as HOME_PATTERNS, B as giveWaySlots, Bn as hasTests, Br as STRICT_OPTIONS, Bt as PRIVATE_NAME_LIST, C as setVersions, Cn as messageOf, Cr as licenseFile, Ct as PAGES_WORKFLOWS, D as trustPolicy, Dn as HOME_EXPORTS, Dr as ACTIONS_COMMIT, Dt as publishTextSafe, E as TRAIN_SCOPES, En as signaturesOf, Er as repositoryIsPublic, Et as exportsRequire, F as sourceMain, Fn as npmNames, Fr as MATRIX_EXPAND_MAX, Ft as noLocalPaths, G as workflowPeaks, Gn as callsSharedCi, Gr as codePackages, Gt as lineNameHit, H as repositoryPeak, Hn as SHARED_ACTIONS, Hr as DEPENDENCY_FIELDS, Ht as firstNameMatch, I as TEMPLATE_CALLED, In as readOverlay, Ir as parseWorkflow, It as privateNamesFile, J as mayRun, Jn as callPermissions, Jr as keyLine, Jt as nameMatches, K as evaluateExpression, Kn as sharedCi, Kr as hasFile, Kt as lineNameHits, L as UNKNOWN_MATRIX_JOBS, Ln as SERVICE_PACKAGE, Lr as readAction, Lt as privateNamesFiles, M as testsRequired, Mn as mapText, Mr as summaryJob, Mt as PRIVATE_NAMES_FILE_VARIABLE, N as isSourcePath, Nn as mergeHomes, Nr as summaryName, Nt as PRIVATE_PATTERNS_VARIABLE, O as typedScripts, On as HOMES, Or as convertGate, Ot as packNoBuildinfo, P as pathsOf, Pn as npmDrift, Pr as gateAfterCancel, Pt as invalidPatternBreaks, Q as releaseFiles, Qn as githubFetch, Qr as parseJsonc, Qt as NOT_SOURCE, R as calledJobs, Rn as runCalls, Rr as readWorkflow, Rt as privatePatterns, S as namedVersions, Sn as homePackage, Sr as authorOf, St as pushMainOnly, T as IGNORE_AFTER, Tn as reposOf, Tr as mitText, Tt as pagesSite, U as runnerPeak, Un as SHARED_CI, Ur as RULE_WARN_DAYS, Ut as isAllowedHit, V as matrixPeak, Vn as tsconfigTest, Vr as cuePreset, Vt as PrivateNameListError, W as runsAtOnce, Wn as SHARED_WORKFLOWS, Wr as cleanPath, Wt as isCommonUse, X as roadmapParses, Xn as HOME_TIMEOUT_MS, Xr as matchesAny, Xt as pathNameHit, Y as roadmapOfLine, Yn as callPermissionsRule, Yr as lineOf, Yt as parsePrivateNames, Z as requiredScripts, Zn as blockHash, Zr as parseCatFileBatch, Zt as CONSOLE_LAST_DAY, _ as runPrePushArgs, _n as homeModule, _r as securityOneJob, _t as isGitSpecifier, a as listRules, ai as specifiersOf, an as REAL_COMPARE, ar as isSecurityGate, at as SHIPPED_FIELDS, b as GITHUB_YAML, bn as modulesOf, br as scheduleMinute, bt as siteCheckInCi, c as runCli, ci as parseRuleConfig, cn as coverageProvider, cr as SUMMARY_GATES, ct as unreleasedChange, d as HOOK_MARKER, dn as homeShape, dr as startsOnPullRequest, dt as hiddenFailures, ei as replaceLine, en as consoleGate, er as addReleaseMode, et as minorOf, f as NO_READ_LINE, fn as homeShapesOf, fr as summaryJobRule, ft as jobFails, g as prePush, gn as HOME_SHAPES, gr as securityCallers, gt as pipeFails, h as parsePrePushArgs, hn as spansOf, hr as SECURITY_TIMEOUT_MINUTES, ht as swallowsTests, i as formatResult, ii as showFiles, in as noBuildOutput, ir as SECURITY_FILE, it as NPM_REGISTRY, j as typedFiles, jn as mapMarkdown, jr as skippableJobs, jt as PRIVATE_NAMES_FILE_CONFIG, k as configsOfScript, kn as MAP_RULE, kr as gateTrigger, kt as DEFAULT_ALLOWED, l as runFix, ln as apiReportScript, lr as addSummaryJob, lt as unreleasedChangeRule, m as installHook, mn as shapesOfSource, mr as SECURITY_SCAN_INPUTS, mt as startsTests, n as annotations, ni as runGit, nn as isCliFile, nr as hasReleaseMode, nt as publishedMinorRule, o as readConfig, oi as defaultOptions, on as hasImportMetaMain, or as securityGate, ot as UNSHIPPED_FILES, p as PRE_PUSH_HOOK, pn as shapeMessage, pr as SECURITY_SCAN_COMMIT, pt as parseAdvisory, q as groupParts, qn as setupCue, qr as inFolder, qt as mergePrivateNames, r as createContext, ri as runGitShow, rn as noConsole, rr as releaseModeRule, rt as reachOf, s as runChecks, si as parseConfig, sn as mainCheck, sr as securityWorkflow, st as npmLookup, t as USAGE, ti as repositoryOfRemote, tn as consoleKind, tr as callsReleaseBuild, tt as publishedMinor, u as summaryMarkdown, un as containedHome, ur as hasSummaryJob, ut as playwrightInstall, v as RULES, vn as moduleMessage, vr as withOneJob, vt as isPinned, w as versionTitle, wn as repoOf, wr as licenseFileOf, wt as pagesCalls, x as workflowParses, xn as declaredName, xr as LICENSE_TEXTS, xt as pagesAfterRelease, y as workspaceProtocol, yn as moduleUses, yr as runnerBudget, yt as pinnedGitDeps, z as eventClass, zn as serviceRunMain, zr as yamlFaults, zt as privateTextBreaks } from "./run-DOZFXGy_.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-B6xQXXcL.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, CONSOLE_LAST_DAY, DEFAULT_ALLOWED, DEPENDENCY_FIELDS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_SHAPES, HOME_TIMEOUT_MS, HOOK_MARKER, IGNORE_AFTER, LICENSE_TEXTS, MAP_RULE, MATRIX_EXPAND_MAX, MAX_NOTES, NOT_SOURCE, 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, addReleaseMode, addSummaryJob, annotations, apiReportScript, authorOf, blockHash, callPermissions, callPermissionsRule, calledJobs, callsReleaseBuild, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, consoleBreaks, consoleGate, consoleKind, containedHome, convertGate, coverageProvider, createContext, cuePreset, declaredName, defaultOptions, evaluateExpression, eventClass, exportsRequire, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, globFolders, globToRegExp, groupParts, hasFile, hasImportMetaMain, hasReleaseMode, hasSummaryJob, hasTests, hiddenFailures, homeModule, homePackage, homeShape, homeShapesOf, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCliFile, 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, noConsole, 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, releaseModeRule, 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, shapeMessage, shapesOfSource, sharedCi, sharedDocsRule, sharedNames, showFiles, signaturesOf, siteCheckInCi, skippableJobs, sourceMain, spansOf, specifiersOf, startsOnPullRequest, startsTests, summaryJob, summaryJobRule, summaryMarkdown, summaryName, swallowsTests, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workflowPeaks, workspaceGlobs, workspaceProtocol, yamlFaults };
69
+ export { ACTIONS_COMMIT, CONSOLE_LAST_DAY, DEFAULT_ALLOWED, DEPENDENCY_FIELDS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_SHAPES, HOME_TIMEOUT_MS, HOOK_MARKER, IGNORE_AFTER, LICENSE_TEXTS, MAP_RULE, MATRIX_EXPAND_MAX, MAX_NOTES, NOT_SOURCE, 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, addReleaseMode, addSummaryJob, annotations, apiReportScript, authorOf, blockHash, callPermissions, callPermissionsRule, calledJobs, callsReleaseBuild, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, consoleBreaks, consoleGate, consoleKind, containedHome, convertGate, coverageProvider, createContext, cuePreset, declaredName, defaultOptions, evaluateExpression, eventClass, exportsRequire, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, giveWaySlots, globFolders, globToRegExp, groupParts, hasFile, hasImportMetaMain, hasReleaseMode, hasSummaryJob, hasTests, hiddenFailures, homeModule, homePackage, homeShape, homeShapesOf, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCliFile, 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, noConsole, 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, releaseModeRule, releaseNotes, replaceLine, repoKeyer, repoOf, reposOf, repositoryIsPublic, repositoryOfRemote, repositoryPeak, requiredScripts, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runGitShow, runPrePushArgs, runnerBudget, runnerPeak, runsAtOnce, scheduleMinute, scriptsOf, securityCallers, securityGate, securityOneJob, securityWorkflow, serviceRunMain, setVersions, setupCue, shapeMessage, shapesOfSource, sharedCi, sharedDocsRule, sharedNames, showFiles, signaturesOf, siteCheckInCi, skippableJobs, sourceMain, spansOf, 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
@@ -1710,11 +1710,14 @@ function secretsOf(value) {
1710
1710
  function parsedStep(value) {
1711
1711
  const step = isObject$1(value) ? value : {};
1712
1712
  const uses = actionOf(optionalText(step["uses"]));
1713
+ const label = optionalText(step["name"]) || uses || (optionalText(step["run"]).split("\n")[0] ?? "") || optionalText(step["id"]) || "step";
1714
+ const inputs = isObject$1(step["with"]) ? step["with"] : {};
1713
1715
  return {
1714
- label: optionalText(step["name"]) || uses || (optionalText(step["run"]).split("\n")[0] ?? "") || optionalText(step["id"]) || "step",
1716
+ label,
1715
1717
  if: optionalText(step["if"]),
1716
1718
  uses,
1717
- secrets: [...secretsOf(step)]
1719
+ secrets: [...secretsOf(step)],
1720
+ with: Object.fromEntries(Object.entries(inputs).map(([key, value]) => [key, optionalText(value)]))
1718
1721
  };
1719
1722
  }
1720
1723
  /** This function gives the `concurrency` of a workflow or of a job: a group as one text, or a map with `group`. */
@@ -77954,6 +77957,10 @@ function mayRun(condition, event) {
77954
77957
  * run at one time. A burst of merges on `push` and a burst of pull requests give these runs. A job that `needs` a
77955
77958
  * different job does not run at the same time as it. Thus the peak of one run is the antichain with the largest weight
77956
77959
  * of the graph of the needs. The peak is exact for that graph.
77960
+ *
77961
+ * A step of the action `give-way` of the template holds the jobs after its job to its `slots` runs at one time. The
77962
+ * runs that wait still hold the runner of the job of the step. Each other event (a schedule, a dispatch) gives one run.
77963
+ * The repository counts the class `other` one time: its peak is the largest peak of that class of each workflow.
77957
77964
  */
77958
77965
  /** 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. */
77959
77966
  const UNKNOWN_MATRIX_JOBS = 3;
@@ -77971,15 +77978,65 @@ function eventClass(event) {
77971
77978
  /**
77972
77979
  * This function gives the runs of a concurrency group that run at one time on the event. A group that depends on the commit
77973
77980
  * 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
77974
- * default branch) and a burst of pull requests. Each other event gives one run.
77981
+ * default branch) and a burst of pull requests. Each other event gives one run. The burst of `push` is `pushBurst`, and its default is `burst`.
77975
77982
  */
77976
- function runsAtOnce(concurrency, event, burst) {
77983
+ function runsAtOnce(concurrency, event, burst, pushBurst = burst) {
77977
77984
  const kind = eventClass(event);
77978
77985
  if (kind === void 0 || kind === "other") return 1;
77979
- if (concurrency === null) return burst;
77986
+ const many = kind === "push" ? pushBurst : burst;
77987
+ if (concurrency === null) return many;
77980
77988
  const parts = groupParts(concurrency.group, event);
77981
- if (parts.has("commit") || parts.has("run")) return burst;
77982
- return parts.has("ref") && kind === "pull" ? burst : 1;
77989
+ if (parts.has("commit") || parts.has("run")) return many;
77990
+ return parts.has("ref") && kind === "pull" ? many : 1;
77991
+ }
77992
+ /** The action of the template that holds a run while earlier runs of a heavy workflow are open. */
77993
+ const GIVE_WAY = ".github/actions/give-way";
77994
+ /** This function gives the text of an input on the event: the text, or the value of an expression `${{ ... }}`. It gives undefined when the reader cannot read it. */
77995
+ function inputOn(value, event) {
77996
+ const text = value.trim();
77997
+ if (!text.startsWith("${{") || !text.endsWith("}}")) return text;
77998
+ return evaluateExpression(text.slice(3, -2), event)?.text;
77999
+ }
78000
+ /**
78001
+ * This function gives the runs at one time that a step `give-way` of the job lets past on the event: its input `slots`.
78002
+ * The default of `slots` is 1. The cap holds when the step can run on the event, and the event is in its input `events`.
78003
+ * The default of `events` is `pull_request`. The step passes after its `wait-minutes`. Thus the cap holds in a busy
78004
+ * minute, not in a long queue. A value that the reader cannot read gives no cap.
78005
+ */
78006
+ function giveWaySlots(job, event) {
78007
+ let slots;
78008
+ for (const step of job.steps) {
78009
+ if (!step.uses.endsWith(GIVE_WAY) || !mayRun(step.if, event)) continue;
78010
+ const events = inputOn(step.with["events"] ?? "pull_request", event)?.split(",").map((each) => each.trim());
78011
+ const count = Number(inputOn(step.with["slots"] ?? "1", event));
78012
+ if (events === void 0 || !events.includes(event) || !Number.isSafeInteger(count) || count < 1) continue;
78013
+ slots = Math.min(slots ?? count, count);
78014
+ }
78015
+ return slots;
78016
+ }
78017
+ /** This function gives the cap of the runs of each job on the event. The cap is the least `slots` of a step `give-way` in a job that it needs. */
78018
+ function slotsOfJobs(jobs, event) {
78019
+ const byId = new Map(jobs.map((job) => [job.id, job]));
78020
+ const caps = /* @__PURE__ */ new Map();
78021
+ const visit = (id, path) => {
78022
+ if (caps.has(id)) return caps.get(id);
78023
+ const job = byId.get(id);
78024
+ if (job === void 0 || path.has(id)) return void 0;
78025
+ let cap;
78026
+ for (const need of job.needs) {
78027
+ const above = byId.get(need);
78028
+ if (above === void 0) continue;
78029
+ for (const each of [giveWaySlots(above, event), visit(need, /* @__PURE__ */ new Set([...path, id]))]) if (each !== void 0) cap = Math.min(cap ?? each, each);
78030
+ }
78031
+ caps.set(id, cap);
78032
+ return cap;
78033
+ };
78034
+ const out = /* @__PURE__ */ new Map();
78035
+ for (const job of jobs) {
78036
+ const cap = visit(job.id, /* @__PURE__ */ new Set());
78037
+ if (cap !== void 0) out.set(job.id, cap);
78038
+ }
78039
+ return out;
77983
78040
  }
77984
78041
  /** The file name of the workflow that a job calls, and if it is a file of the same repository (`./.github/workflows/`). */
77985
78042
  function callOf(job) {
@@ -78083,13 +78140,18 @@ function workflowPeaks(workflows, options) {
78083
78140
  const kind = eventClass(event);
78084
78141
  if (kind === void 0) continue;
78085
78142
  const running = workflow.jobs.filter((job) => mayRun(job.if, event));
78143
+ const slots = slotsOfJobs(running, event);
78086
78144
  const jobs = running.map((job) => {
78087
78145
  const one = jobOfRun(job, event, local, options, /* @__PURE__ */ new Set([workflow.file]));
78146
+ const runs = runsAtOnce(workflow.concurrency ?? job.concurrency, event, options.burst, options.pushBurst);
78147
+ const cap = slots.get(job.id);
78148
+ const held = cap !== void 0 && cap < runs;
78088
78149
  return {
78089
78150
  id: job.id,
78090
78151
  line: job.line,
78091
78152
  jobs: one.jobs,
78092
- runs: runsAtOnce(workflow.concurrency ?? job.concurrency, event, options.burst),
78153
+ runs: held ? cap : runs,
78154
+ ...held ? { slots: cap } : {},
78093
78155
  known: one.known
78094
78156
  };
78095
78157
  });
@@ -78111,6 +78173,14 @@ function workflowPeaks(workflows, options) {
78111
78173
  }];
78112
78174
  });
78113
78175
  }
78176
+ /**
78177
+ * This function gives the most jobs of the workflows of a repository at one time in a busy minute. The classes `push` and
78178
+ * `pull` of each workflow add up. The class `other` counts one time for the repository: one schedule or one dispatch, the
78179
+ * largest of each workflow.
78180
+ */
78181
+ function repositoryPeak(peaks) {
78182
+ return peaks.reduce((sum, item) => sum + (item.classes.push?.peak ?? 0) + (item.classes.pull?.peak ?? 0), 0) + Math.max(0, ...peaks.map((item) => item.classes.other?.peak ?? 0));
78183
+ }
78114
78184
  /** This function reads the option `called`: a list of `<file>=<jobs>`. A pair that does not parse is left out. */
78115
78185
  function calledJobs(values) {
78116
78186
  const out = {};
@@ -78125,7 +78195,9 @@ function peakText(item) {
78125
78195
  const parts = Object.entries(item.classes).map(([kind, value]) => {
78126
78196
  const runs = Math.max(...value.jobs.map((job) => job.runs), 0);
78127
78197
  const unknown = value.jobs.some((job) => !job.known) ? ", a call of an unknown workflow counts 1" : "";
78128
- return `${kind} ${String(value.peak)} on ${value.event} (up to ${String(runs)} runs at one time${unknown})`;
78198
+ const held = value.jobs.filter((job) => job.slots !== void 0).map((job) => job.id);
78199
+ const slots = held.length === 0 ? "" : `, give-way holds ${held.join(", ")}`;
78200
+ return `${kind} ${String(value.peak)} on ${value.event} (up to ${String(runs)} runs at one time${slots}${unknown})`;
78129
78201
  });
78130
78202
  return `${item.file.slice(item.file.lastIndexOf("/") + 1)} ${String(item.peak)}: ${parts.join("; ")}`;
78131
78203
  }
@@ -78168,7 +78240,12 @@ const runnerPeak = {
78168
78240
  burst: {
78169
78241
  type: "number",
78170
78242
  default: 5,
78171
- description: "The runs of push, or of pull requests, that start in a busy minute when each run has its own group."
78243
+ description: "The runs of pull requests that start in a busy minute when each run has its own group. It is also the burst of push when pushBurst is 0."
78244
+ },
78245
+ pushBurst: {
78246
+ type: "number",
78247
+ default: 0,
78248
+ description: "The runs of push (a burst of merges) that start in a busy minute when each run has its own group. 0 uses the option burst."
78172
78249
  },
78173
78250
  called: {
78174
78251
  type: "strings",
@@ -78190,11 +78267,14 @@ const runnerPeak = {
78190
78267
  continue;
78191
78268
  }
78192
78269
  const called = calledJobs(Array.isArray(options["called"]) ? options["called"] : []);
78270
+ const burst = Math.max(1, Number(options["burst"]));
78271
+ const push = Number(options["pushBurst"]);
78193
78272
  const peaks = workflowPeaks(workflows, {
78194
- burst: Math.max(1, Number(options["burst"])),
78273
+ burst,
78274
+ pushBurst: push >= 1 ? push : burst,
78195
78275
  called
78196
78276
  }).sort((a, b) => b.peak - a.peak);
78197
- const total = peaks.reduce((sum, item) => sum + item.peak, 0);
78277
+ const total = repositoryPeak(peaks);
78198
78278
  if (total <= share) return [];
78199
78279
  return [{
78200
78280
  file: `.github/workflows/${peaks[0]?.file ?? ""}`,
@@ -80996,6 +81076,6 @@ function runHook(args, io) {
80996
81076
  git: (gitArgs) => runGit(io.cwd, gitArgs)
80997
81077
  }, io);
80998
81078
  }
80999
- export { publishedMinor as $, callsReleaseBuild as $n, repositoryOfRemote as $r, consoleKind as $t, scriptsOf as A, mapText as An, summaryJob as Ar, PRIVATE_NAMES_FILE_VARIABLE as At, matrixPeak as B, SHARED_ACTIONS as Bn, DEPENDENCY_FIELDS as Br, firstNameMatch as Bt, setVersions as C, reposOf as Cn, mitText as Cr, pagesSite as Ct, trustPolicy as D, MAP_RULE as Dn, gateTrigger as Dr, DEFAULT_ALLOWED as Dt, TRAIN_SCOPES as E, HOMES as En, convertGate as Er, packNoBuildinfo as Et, sourceMain as F, SERVICE_PACKAGE as Fn, readAction as Fr, privateNamesFiles as Ft, groupParts as G, setupCue as Gn, inFolder as Gr, mergePrivateNames as Gt, runsAtOnce as H, SHARED_WORKFLOWS as Hn, cleanPath as Hr, isCommonUse as Ht, TEMPLATE_CALLED as I, runCalls as In, readWorkflow as Ir, privatePatterns as It, roadmapParses as J, HOME_TIMEOUT_MS as Jn, matchesAny as Jr, pathNameHit as Jt, mayRun as K, callPermissions as Kn, keyLine as Kr, nameMatches as Kt, UNKNOWN_MATRIX_JOBS as L, serviceRunMain as Ln, yamlFaults as Lr, privateTextBreaks as Lt, testsRequired as M, npmDrift as Mn, gateAfterCancel as Mr, invalidPatternBreaks as Mt, isSourcePath as N, npmNames as Nn, MATRIX_EXPAND_MAX as Nr, noLocalPaths as Nt, typedScripts as O, findHomes as On, prPathFilters as Or, HOME_PATTERNS as Ot, pathsOf as P, readOverlay as Pn, parseWorkflow as Pr, privateNamesFile as Pt, minorOf as Q, addReleaseMode as Qn, replaceLine as Qr, consoleGate as Qt, calledJobs as R, hasTests as Rn, STRICT_OPTIONS as Rr, PRIVATE_NAME_LIST as Rt, namedVersions as S, repoOf as Sn, licenseFileOf as Sr, pagesCalls as St, IGNORE_AFTER as T, HOME_EXPORTS as Tn, ACTIONS_COMMIT as Tr, publishTextSafe as Tt, workflowPeaks as U, callsSharedCi as Un, codePackages as Ur, lineNameHit as Ut, runnerPeak as V, SHARED_CI as Vn, RULE_WARN_DAYS as Vr, isAllowedHit as Vt, evaluateExpression as W, sharedCi as Wn, hasFile as Wr, lineNameHits as Wt, releaseFiles as X, githubFetch as Xn, parseJsonc as Xr, NOT_SOURCE as Xt, requiredScripts as Y, blockHash as Yn, parseCatFileBatch as Yr, CONSOLE_LAST_DAY as Yt, lockedVersions as Z, sharedDocsRule as Zn, readJsonc as Zr, consoleBreaks as Zt, runPrePushArgs as _, moduleUses as _n, runnerBudget as _r, pinnedGitDeps as _t, listRules as a, parseConfig as ai, mainCheck as an, securityWorkflow as ar, npmLookup as at, GITHUB_YAML as b, homePackage as bn, authorOf as br, pushMainOnly as bt, runCli as c, containedHome as cn, hasSummaryJob as cr, playwrightInstall as ct, HOOK_MARKER as d, shapeMessage as dn, SECURITY_SCAN_COMMIT as dr, parseAdvisory as dt, runGit as ei, isCliFile as en, hasReleaseMode as er, publishedMinorRule as et, NO_READ_LINE as f, shapesOfSource as fn, SECURITY_SCAN_INPUTS as fr, startsTests as ft, prePush as g, moduleMessage as gn, withOneJob as gr, isPinned as gt, parsePrePushArgs as h, homeModule as hn, securityOneJob as hr, isGitSpecifier as ht, formatResult as i, defaultOptions as ii, hasImportMetaMain as in, securityGate as ir, UNSHIPPED_FILES as it, typedFiles as j, mergeHomes as jn, summaryName as jr, PRIVATE_PATTERNS_VARIABLE as jt, configsOfScript as k, mapMarkdown as kn, skippableJobs as kr, PRIVATE_NAMES_FILE_CONFIG as kt, runFix as l, homeShape as ln, startsOnPullRequest as lr, hiddenFailures as lt, installHook as m, HOME_SHAPES as mn, securityCallers as mr, pipeFails as mt, annotations as n, showFiles as ni, noBuildOutput as nn, SECURITY_FILE as nr, NPM_REGISTRY as nt, readConfig as o, parseRuleConfig as oi, coverageProvider as on, SUMMARY_GATES as or, unreleasedChange as ot, PRE_PUSH_HOOK as p, spansOf as pn, SECURITY_TIMEOUT_MINUTES as pr, swallowsTests as pt, roadmapOfLine as q, callPermissionsRule as qn, lineOf as qr, parsePrivateNames as qt, createContext as r, specifiersOf as ri, REAL_COMPARE as rn, isSecurityGate as rr, SHIPPED_FIELDS as rt, runChecks as s, apiReportScript as sn, addSummaryJob as sr, unreleasedChangeRule as st, USAGE as t, runGitShow as ti, noConsole as tn, releaseModeRule as tr, reachOf as tt, summaryMarkdown as u, homeShapesOf as un, summaryJobRule as ur, jobFails as ut, RULES as v, modulesOf as vn, scheduleMinute as vr, siteCheckInCi as vt, versionTitle as w, signaturesOf as wn, repositoryIsPublic as wr, exportsRequire as wt, workflowParses as x, messageOf$1 as xn, licenseFile as xr, PAGES_WORKFLOWS as xt, workspaceProtocol as y, declaredName as yn, LICENSE_TEXTS as yr, pagesAfterRelease as yt, eventClass as z, tsconfigTest as zn, cuePreset as zr, PrivateNameListError as zt };
81079
+ export { lockedVersions as $, sharedDocsRule as $n, readJsonc as $r, consoleBreaks as $t, scriptsOf as A, findHomes as An, prPathFilters as Ar, HOME_PATTERNS as At, giveWaySlots as B, hasTests as Bn, STRICT_OPTIONS as Br, PRIVATE_NAME_LIST as Bt, setVersions as C, messageOf$1 as Cn, licenseFile as Cr, PAGES_WORKFLOWS as Ct, trustPolicy as D, HOME_EXPORTS as Dn, ACTIONS_COMMIT as Dr, publishTextSafe as Dt, TRAIN_SCOPES as E, signaturesOf as En, repositoryIsPublic as Er, exportsRequire as Et, sourceMain as F, npmNames as Fn, MATRIX_EXPAND_MAX as Fr, noLocalPaths as Ft, workflowPeaks as G, callsSharedCi as Gn, codePackages as Gr, lineNameHit as Gt, repositoryPeak as H, SHARED_ACTIONS as Hn, DEPENDENCY_FIELDS as Hr, firstNameMatch as Ht, TEMPLATE_CALLED as I, readOverlay as In, parseWorkflow as Ir, privateNamesFile as It, mayRun as J, callPermissions as Jn, keyLine as Jr, nameMatches as Jt, evaluateExpression as K, sharedCi as Kn, hasFile as Kr, lineNameHits as Kt, UNKNOWN_MATRIX_JOBS as L, SERVICE_PACKAGE as Ln, readAction as Lr, privateNamesFiles as Lt, testsRequired as M, mapText as Mn, summaryJob as Mr, PRIVATE_NAMES_FILE_VARIABLE as Mt, isSourcePath as N, mergeHomes as Nn, summaryName as Nr, PRIVATE_PATTERNS_VARIABLE as Nt, typedScripts as O, HOMES as On, convertGate as Or, packNoBuildinfo as Ot, pathsOf as P, npmDrift as Pn, gateAfterCancel as Pr, invalidPatternBreaks as Pt, releaseFiles as Q, githubFetch as Qn, parseJsonc as Qr, NOT_SOURCE as Qt, calledJobs as R, runCalls as Rn, readWorkflow as Rr, privatePatterns as Rt, namedVersions as S, homePackage as Sn, authorOf as Sr, pushMainOnly as St, IGNORE_AFTER as T, reposOf as Tn, mitText as Tr, pagesSite as Tt, runnerPeak as U, SHARED_CI as Un, RULE_WARN_DAYS as Ur, isAllowedHit as Ut, matrixPeak as V, tsconfigTest as Vn, cuePreset as Vr, PrivateNameListError as Vt, runsAtOnce as W, SHARED_WORKFLOWS as Wn, cleanPath as Wr, isCommonUse as Wt, roadmapParses as X, HOME_TIMEOUT_MS as Xn, matchesAny as Xr, pathNameHit as Xt, roadmapOfLine as Y, callPermissionsRule as Yn, lineOf as Yr, parsePrivateNames as Yt, requiredScripts as Z, blockHash as Zn, parseCatFileBatch as Zr, CONSOLE_LAST_DAY as Zt, runPrePushArgs as _, homeModule as _n, securityOneJob as _r, isGitSpecifier as _t, listRules as a, specifiersOf as ai, REAL_COMPARE as an, isSecurityGate as ar, SHIPPED_FIELDS as at, GITHUB_YAML as b, modulesOf as bn, scheduleMinute as br, siteCheckInCi as bt, runCli as c, parseRuleConfig as ci, coverageProvider as cn, SUMMARY_GATES as cr, unreleasedChange as ct, HOOK_MARKER as d, homeShape as dn, startsOnPullRequest as dr, hiddenFailures as dt, replaceLine as ei, consoleGate as en, addReleaseMode as er, minorOf as et, NO_READ_LINE as f, homeShapesOf as fn, summaryJobRule as fr, jobFails as ft, prePush as g, HOME_SHAPES as gn, securityCallers as gr, pipeFails as gt, parsePrePushArgs as h, spansOf as hn, SECURITY_TIMEOUT_MINUTES as hr, swallowsTests as ht, formatResult as i, showFiles as ii, noBuildOutput as in, SECURITY_FILE as ir, NPM_REGISTRY as it, typedFiles as j, mapMarkdown as jn, skippableJobs as jr, PRIVATE_NAMES_FILE_CONFIG as jt, configsOfScript as k, MAP_RULE as kn, gateTrigger as kr, DEFAULT_ALLOWED as kt, runFix as l, apiReportScript as ln, addSummaryJob as lr, unreleasedChangeRule as lt, installHook as m, shapesOfSource as mn, SECURITY_SCAN_INPUTS as mr, startsTests as mt, annotations as n, runGit as ni, isCliFile as nn, hasReleaseMode as nr, publishedMinorRule as nt, readConfig as o, defaultOptions as oi, hasImportMetaMain as on, securityGate as or, UNSHIPPED_FILES as ot, PRE_PUSH_HOOK as p, shapeMessage as pn, SECURITY_SCAN_COMMIT as pr, parseAdvisory as pt, groupParts as q, setupCue as qn, inFolder as qr, mergePrivateNames as qt, createContext as r, runGitShow as ri, noConsole as rn, releaseModeRule as rr, reachOf as rt, runChecks as s, parseConfig as si, mainCheck as sn, securityWorkflow as sr, npmLookup as st, USAGE as t, repositoryOfRemote as ti, consoleKind as tn, callsReleaseBuild as tr, publishedMinor as tt, summaryMarkdown as u, containedHome as un, hasSummaryJob as ur, playwrightInstall as ut, RULES as v, moduleMessage as vn, withOneJob as vr, isPinned as vt, versionTitle as w, repoOf as wn, licenseFileOf as wr, pagesCalls as wt, workflowParses as x, declaredName as xn, LICENSE_TEXTS as xr, pagesAfterRelease as xt, workspaceProtocol as y, moduleUses as yn, runnerBudget as yr, pinnedGitDeps as yt, eventClass as z, serviceRunMain as zn, yamlFaults as zr, privateTextBreaks as zt };
81000
81080
 
81001
- //# sourceMappingURL=run-CrwleOgO.js.map
81081
+ //# sourceMappingURL=run-DOZFXGy_.js.map