@mark1russell7/conventions 0.51.0 → 0.52.1
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/build/cli.js
CHANGED
package/build/index.d.ts
CHANGED
|
@@ -912,6 +912,13 @@ interface ParsedStep {
|
|
|
912
912
|
/** The secrets that the expressions of the step read. The name `*` is the whole context, as in `toJSON(secrets)`. */
|
|
913
913
|
readonly secrets: readonly string[];
|
|
914
914
|
}
|
|
915
|
+
/** 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. */
|
|
916
|
+
interface ParsedConcurrency {
|
|
917
|
+
/** The group, as text. An expression stays as it is, so two runs share the group when it gives the same text for both. */
|
|
918
|
+
readonly group: string;
|
|
919
|
+
/** The value of `cancel-in-progress`: true, false, or the text of an expression. No key is false, as GitHub reads it. */
|
|
920
|
+
readonly cancelInProgress: boolean | string;
|
|
921
|
+
}
|
|
915
922
|
/** A job of a workflow, as the YAML parser reads it. */
|
|
916
923
|
interface ParsedJob {
|
|
917
924
|
readonly id: string;
|
|
@@ -919,6 +926,14 @@ interface ParsedJob {
|
|
|
919
926
|
readonly name: string;
|
|
920
927
|
/** 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. */
|
|
921
928
|
readonly maxParallel: number | null;
|
|
929
|
+
/**
|
|
930
|
+
* The count of the jobs of `strategy.matrix`, as GitHub expands it. It is the product of the lists, less the
|
|
931
|
+
* combinations of `exclude`. Each entry of `include` that adds to no combination adds one job. A job with no matrix gives 1. The value is null
|
|
932
|
+
* when an expression gives the matrix or a part of it, or the product is above {@link MATRIX_EXPAND_MAX}.
|
|
933
|
+
*/
|
|
934
|
+
readonly matrixJobs: number | null;
|
|
935
|
+
/** The `concurrency` of the job, or null when the job has none. */
|
|
936
|
+
readonly concurrency: ParsedConcurrency | null;
|
|
922
937
|
/** The condition of the job (`if`), or an empty text. */
|
|
923
938
|
readonly if: string;
|
|
924
939
|
readonly needs: readonly string[];
|
|
@@ -938,6 +953,8 @@ interface ParsedWorkflow {
|
|
|
938
953
|
/** The events of `on`, in the order of the file. */
|
|
939
954
|
readonly triggers: readonly string[];
|
|
940
955
|
readonly permissions: WorkflowPermissions;
|
|
956
|
+
/** The `concurrency` at the top of the file, or null when the file has none. */
|
|
957
|
+
readonly concurrency: ParsedConcurrency | null;
|
|
941
958
|
/** The secrets that each part of the file reads, with each job. */
|
|
942
959
|
readonly secrets: readonly string[];
|
|
943
960
|
readonly jobs: readonly ParsedJob[];
|
|
@@ -948,6 +965,8 @@ interface ParsedWorkflow {
|
|
|
948
965
|
*/
|
|
949
966
|
readonly faults: readonly YamlFault[];
|
|
950
967
|
}
|
|
968
|
+
/** The largest product of the lists of a matrix that the reader expands. GitHub refuses a matrix of more than 256 jobs. */
|
|
969
|
+
export declare const MATRIX_EXPAND_MAX: number;
|
|
951
970
|
/**
|
|
952
971
|
* This function reads a workflow file with the YAML parser. The file name goes into the result. It does not throw: each
|
|
953
972
|
* problem is a fault of the result. A file with a fault gives no trigger and no job.
|
|
@@ -1160,5 +1179,5 @@ export declare function npmUrl(name: string, version: string): string;
|
|
|
1160
1179
|
* link to npm. The Releases page of `site-pages` reads each list item as a change.
|
|
1161
1180
|
*/
|
|
1162
1181
|
export declare function releaseNotes(name: string, version: string, changelog: string | undefined): string;
|
|
1163
|
-
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 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 };
|
|
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 };
|
|
1164
1183
|
//# 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/workflow.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/run.ts","../src/pre-push.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;;W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WAEA;;;UAIM;WACN;WACA;WACA;WACA,gBAAgB;;;UAIV;;WAEN;;WAEA;;WAEA;;WAEA;WACA,iBAAiB;WACjB,eAAe;;;wBAgGV,aAAa,cAAc,eAAe;;;;;;;wBAmD1C,WAAW,cAAc,eAAe;;UA0BvC;WACN;WACA;WACA;;;wBAoBK,WAAW,eAAe;;;;;;;;;KAY9B,+BAA+B,SAAS;;UAGnC;;WAEN;;WAEA;;WAEA;;WAEA;;;UAIM;WACN;;WAEA;;WAEA;;WAEA;WACA;;WAEA;WACA,aAAa;;WAEb;WACA,gBAAgB;;;UAIV;;WAEN;;WAEA;;WAEA;WACA,aAAa;;WAEb;WACA,eAAe;;;;;;WAMf,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/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/workflow.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/run.ts","../src/pre-push.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,aAAa;;;;;wBAMrB,aAAa,SAAS,KAAK,oDAAoD;;UCtS9E;;WAEN;;WAEA;;;;;WAKA;;WAEA;;WAEA,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/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as unreleasedChange, $n as summaryJob, $t as homePackage, A as scriptsOf, An as addSummaryJob, At as privateTextBreaks, B as roadmapOfLine, Bn as runnerBudget, Bt as parsePrivateNames, C as setVersions, Cn as sharedCi, Cr as
|
|
1
|
+
import { $ as unreleasedChange, $n as summaryJob, $t as homePackage, A as scriptsOf, An as addSummaryJob, At as privateTextBreaks, B as roadmapOfLine, Bn as runnerBudget, Bt as parsePrivateNames, C as setVersions, Cn as sharedCi, Cr as runGit, Ct as PRIVATE_NAMES_FILE_VARIABLE, D as trustPolicy, Dn as securityGate, Dr as defaultOptions, Dt as privateNamesFile, E as TRAIN_SCOPES, En as isSecurityGate, Er as specifiersOf, Et as noLocalPaths, F as sourceMain, Fn as SECURITY_SCAN_INPUTS, Ft as isCommonUse, G as minorOf, Gn as licenseFileOf, Gt as mainCheck, H as requiredScripts, Hn as LICENSE_TEXTS, Ht as noBuildOutput, I as HOME_TIMEOUT_MS, In as SECURITY_TIMEOUT_MINUTES, It as lineNameHit, J as reachOf, Jn as ACTIONS_COMMIT, Jt as homeModule, K as publishedMinor, Kn as mitText, Kt as coverageProvider, L as blockHash, Ln as securityCallers, Lt as lineNameHits, M as testsRequired, Mn as startsOnPullRequest, Mt as PrivateNameListError, N as isSourcePath, Nn as summaryJobRule, Nt as firstNameMatch, O as typedScripts, On as securityWorkflow, Or as parseConfig, Ot as privateNamesFiles, P as pathsOf, Pn as SECURITY_SCAN_COMMIT, Pt as isAllowedHit, Q as npmLookup, Qn as skippableJobs, Qt as declaredName, R as githubFetch, Rn as securityOneJob, Rt as mergePrivateNames, S as namedVersions, Sn as callsSharedCi, Sr as repositoryOfRemote, St as PRIVATE_NAMES_FILE_CONFIG, T as IGNORE_AFTER, Tn as SECURITY_FILE, Tr as showFiles, Tt as invalidPatternBreaks, U as releaseFiles, Un as authorOf, Ut as REAL_COMPARE, V as roadmapParses, Vn as scheduleMinute, Vt as pathNameHit, W as lockedVersions, Wn as licenseFile, Wt as hasImportMetaMain, X as SHIPPED_FIELDS, Xn as gateTrigger, Xt as moduleUses, Y as NPM_REGISTRY, Yn as convertGate, Yt as moduleMessage, Z as UNSHIPPED_FILES, Zn as prPathFilters, Zt as modulesOf, _ as runPrePushArgs, _n as hasTests, _r as matchesAny, _t as exportsRequire, a as listRules, an as HOMES, ar as readWorkflow, at as startsTests, b as GITHUB_YAML, bn as SHARED_CI, br as readJsonc, bt as DEFAULT_ALLOWED, c as runCli, cn as mapMarkdown, cr as cuePreset, ct as isGitSpecifier, d as HOOK_MARKER, dn as npmDrift, dr as cleanPath, dt as siteCheckInCi, en as messageOf, er as summaryName, et as unreleasedChangeRule, f as NO_READ_LINE, fn as npmNames, fr as codePackages, ft as pagesAfterRelease, g as prePush, gn as serviceRunMain, gr as lineOf, gt as pagesSite, h as parsePrePushArgs, hn as runCalls, hr as keyLine, ht as pagesCalls, i as formatResult, in as HOME_EXPORTS, ir as readAction, it as parseAdvisory, j as typedFiles, jn as hasSummaryJob, jt as PRIVATE_NAME_LIST, k as configsOfScript, kn as SUMMARY_GATES, kr as parseRuleConfig, kt as privatePatterns, l as runFix, ln as mapText, lr as DEPENDENCY_FIELDS, lt as isPinned, m as installHook, mn as SERVICE_PACKAGE, mr as inFolder, mt as PAGES_WORKFLOWS, n as annotations, nn as reposOf, nr as MATRIX_EXPAND_MAX, nt as hiddenFailures, o as readConfig, on as MAP_RULE, or as yamlFaults, ot as swallowsTests, p as PRE_PUSH_HOOK, pn as readOverlay, pr as hasFile, pt as pushMainOnly, q as publishedMinorRule, qn as repositoryIsPublic, qt as apiReportScript, r as createContext, rn as signaturesOf, rr as parseWorkflow, rt as jobFails, s as runChecks, sn as findHomes, sr as STRICT_OPTIONS, st as pipeFails, t as USAGE, tn as repoOf, tr as gateAfterCancel, tt as playwrightInstall, u as summaryMarkdown, un as mergeHomes, ur as RULE_WARN_DAYS, ut as pinnedGitDeps, v as RULES, vn as tsconfigTest, vr as parseCatFileBatch, vt as publishTextSafe, w as versionTitle, wn as setupCue, wr as runGitShow, wt as PRIVATE_PATTERNS_VARIABLE, x as workflowParses, xn as SHARED_WORKFLOWS, xr as replaceLine, xt as HOME_PATTERNS, y as workspaceProtocol, yn as SHARED_ACTIONS, yr as parseJsonc, yt as packNoBuildinfo, z as sharedDocsRule, zn as withOneJob, zt as nameMatches } from "./run-BkkhkBof.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, 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, 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 };
|
|
70
70
|
|
|
71
71
|
//# sourceMappingURL=index.js.map
|
|
@@ -1715,16 +1715,79 @@ function parsedStep(value) {
|
|
|
1715
1715
|
secrets: [...secretsOf(step)]
|
|
1716
1716
|
};
|
|
1717
1717
|
}
|
|
1718
|
+
/** This function gives the `concurrency` of a workflow or of a job: a group as one text, or a map with `group`. */
|
|
1719
|
+
function concurrencyOf(owner) {
|
|
1720
|
+
const value = owner["concurrency"];
|
|
1721
|
+
if (value === void 0 || value === null) return null;
|
|
1722
|
+
if (!isObject$1(value)) return {
|
|
1723
|
+
group: textOf(value).trim(),
|
|
1724
|
+
cancelInProgress: false
|
|
1725
|
+
};
|
|
1726
|
+
const cancel = value["cancel-in-progress"];
|
|
1727
|
+
return {
|
|
1728
|
+
group: optionalText(value["group"]),
|
|
1729
|
+
cancelInProgress: typeof cancel === "boolean" ? cancel : cancel === void 0 || cancel === null ? false : textOf(cancel).trim()
|
|
1730
|
+
};
|
|
1731
|
+
}
|
|
1732
|
+
/** The largest product of the lists of a matrix that the reader expands. GitHub refuses a matrix of more than 256 jobs. */
|
|
1733
|
+
const MATRIX_EXPAND_MAX = 65536;
|
|
1734
|
+
/** This function tells if a value of the parser is an expression or holds one at its top. GitHub then gives the value at run time. */
|
|
1735
|
+
const isExpression = (value) => typeof value === "string" && value.includes("${{");
|
|
1736
|
+
/** This function tells if two values of the parser are the same: the same scalar, or lists and maps with the same items. */
|
|
1737
|
+
function sameValue(a, b) {
|
|
1738
|
+
if (a === b) return true;
|
|
1739
|
+
if (Array.isArray(a) || Array.isArray(b)) return Array.isArray(a) && Array.isArray(b) && a.length === b.length && a.every((item, i) => sameValue(item, b[i]));
|
|
1740
|
+
if (!isObject$1(a) || !isObject$1(b)) return false;
|
|
1741
|
+
const keys = Object.keys(a);
|
|
1742
|
+
return keys.length === Object.keys(b).length && keys.every((key) => Object.hasOwn(b, key) && sameValue(a[key], b[key]));
|
|
1743
|
+
}
|
|
1744
|
+
/** This function tells if an entry of `exclude` or `include` agrees with a combination on each key of `keys` that the entry has. */
|
|
1745
|
+
const agrees = (entry, combination, keys) => Object.keys(entry).every((key) => !keys.has(key) || sameValue(entry[key], combination[key]));
|
|
1746
|
+
/**
|
|
1747
|
+
* This function gives the count of the jobs of a matrix, as GitHub expands it. First the product of the lists, then
|
|
1748
|
+
* `exclude` takes away each combination that agrees with an entry on each key of the entry. Then each entry of `include`
|
|
1749
|
+
* adds to each combination that it agrees with on the keys of the lists. It changes no value of a list. An entry that adds
|
|
1750
|
+
* to no combination is a new job. A job that `include` made is no target of a later entry, so a matrix of only `include`
|
|
1751
|
+
* gives one job for each entry.
|
|
1752
|
+
*/
|
|
1753
|
+
function matrixJobsOf(strategy) {
|
|
1754
|
+
const matrix = strategy["matrix"];
|
|
1755
|
+
if (matrix === void 0 || matrix === null) return 1;
|
|
1756
|
+
if (!isObject$1(matrix)) return null;
|
|
1757
|
+
const { include, exclude, ...lists } = matrix;
|
|
1758
|
+
const entries = (value) => value === void 0 || value === null ? [] : Array.isArray(value) && value.every(isObject$1) ? value : null;
|
|
1759
|
+
const included = entries(include);
|
|
1760
|
+
const excluded = entries(exclude);
|
|
1761
|
+
if (included === null || excluded === null) return null;
|
|
1762
|
+
const dimensions = Object.entries(lists);
|
|
1763
|
+
if (dimensions.some(([, values]) => !Array.isArray(values))) return null;
|
|
1764
|
+
const keys = new Set(dimensions.map(([key]) => key));
|
|
1765
|
+
let combinations = [];
|
|
1766
|
+
if (dimensions.length > 0) {
|
|
1767
|
+
if (dimensions.reduce((size, [, values]) => size * values.length, 1) > 65536) return null;
|
|
1768
|
+
combinations = [{}];
|
|
1769
|
+
for (const [key, values] of dimensions) combinations = combinations.flatMap((combination) => values.map((value) => ({
|
|
1770
|
+
...combination,
|
|
1771
|
+
[key]: value
|
|
1772
|
+
})));
|
|
1773
|
+
combinations = combinations.filter((combination) => !excluded.some((entry) => agrees(entry, combination, new Set(Object.keys(entry)))));
|
|
1774
|
+
}
|
|
1775
|
+
const added = included.filter((entry) => !combinations.some((combination) => agrees(entry, combination, keys))).length;
|
|
1776
|
+
return combinations.length + added;
|
|
1777
|
+
}
|
|
1718
1778
|
/** This function reads a job. */
|
|
1719
1779
|
function parsedJob(id, value) {
|
|
1720
1780
|
const job = isObject$1(value) ? value : {};
|
|
1721
1781
|
const secrets = secretsOf(job);
|
|
1722
1782
|
if (job["secrets"] === "inherit") secrets.add("inherit");
|
|
1723
|
-
const
|
|
1783
|
+
const strategy = isObject$1(job["strategy"]) ? job["strategy"] : {};
|
|
1784
|
+
const limit = strategy["max-parallel"];
|
|
1724
1785
|
return {
|
|
1725
1786
|
id,
|
|
1726
1787
|
name: optionalText(job["name"]) || id,
|
|
1727
1788
|
maxParallel: typeof limit === "number" && Number.isInteger(limit) && limit > 0 ? limit : null,
|
|
1789
|
+
matrixJobs: isExpression(job["strategy"]) || isExpression(strategy["matrix"]) ? null : matrixJobsOf(strategy),
|
|
1790
|
+
concurrency: concurrencyOf(job),
|
|
1728
1791
|
if: optionalText(job["if"]),
|
|
1729
1792
|
needs: listValues(job["needs"]),
|
|
1730
1793
|
uses: actionOf(optionalText(job["uses"])),
|
|
@@ -1759,6 +1822,7 @@ function parseWorkflow(file, text) {
|
|
|
1759
1822
|
name: file,
|
|
1760
1823
|
triggers: [],
|
|
1761
1824
|
permissions: null,
|
|
1825
|
+
concurrency: null,
|
|
1762
1826
|
secrets: [],
|
|
1763
1827
|
jobs: [],
|
|
1764
1828
|
faults
|
|
@@ -1775,6 +1839,7 @@ function parseWorkflow(file, text) {
|
|
|
1775
1839
|
name: optionalText(top["name"]) || file,
|
|
1776
1840
|
triggers: triggersOf$1(top["on"]),
|
|
1777
1841
|
permissions: permissionsOf(top),
|
|
1842
|
+
concurrency: concurrencyOf(top),
|
|
1778
1843
|
secrets: [...secrets],
|
|
1779
1844
|
jobs,
|
|
1780
1845
|
faults
|
|
@@ -24364,6 +24429,6 @@ function runHook(args, io) {
|
|
|
24364
24429
|
git: (gitArgs) => runGit(io.cwd, gitArgs)
|
|
24365
24430
|
}, io);
|
|
24366
24431
|
}
|
|
24367
|
-
export { unreleasedChange as $, summaryJob as $n, homePackage as $t, scriptsOf as A, addSummaryJob as An, privateTextBreaks as At, roadmapOfLine as B, runnerBudget as Bn, parsePrivateNames as Bt, setVersions as C, sharedCi as Cn,
|
|
24432
|
+
export { unreleasedChange as $, summaryJob as $n, homePackage as $t, scriptsOf as A, addSummaryJob as An, privateTextBreaks as At, roadmapOfLine as B, runnerBudget as Bn, parsePrivateNames as Bt, setVersions as C, sharedCi as Cn, runGit as Cr, PRIVATE_NAMES_FILE_VARIABLE as Ct, trustPolicy as D, securityGate as Dn, defaultOptions as Dr, privateNamesFile as Dt, TRAIN_SCOPES as E, isSecurityGate as En, specifiersOf as Er, noLocalPaths as Et, sourceMain as F, SECURITY_SCAN_INPUTS as Fn, isCommonUse as Ft, minorOf as G, licenseFileOf as Gn, mainCheck as Gt, requiredScripts as H, LICENSE_TEXTS as Hn, noBuildOutput as Ht, HOME_TIMEOUT_MS as I, SECURITY_TIMEOUT_MINUTES as In, lineNameHit as It, reachOf as J, ACTIONS_COMMIT as Jn, homeModule as Jt, publishedMinor as K, mitText as Kn, coverageProvider as Kt, blockHash as L, securityCallers as Ln, lineNameHits as Lt, testsRequired as M, startsOnPullRequest as Mn, PrivateNameListError as Mt, isSourcePath as N, summaryJobRule as Nn, firstNameMatch as Nt, typedScripts as O, securityWorkflow as On, parseConfig as Or, privateNamesFiles as Ot, pathsOf as P, SECURITY_SCAN_COMMIT as Pn, isAllowedHit as Pt, npmLookup as Q, skippableJobs as Qn, declaredName as Qt, githubFetch as R, securityOneJob as Rn, mergePrivateNames as Rt, namedVersions as S, callsSharedCi as Sn, repositoryOfRemote as Sr, PRIVATE_NAMES_FILE_CONFIG as St, IGNORE_AFTER as T, SECURITY_FILE as Tn, showFiles as Tr, invalidPatternBreaks as Tt, releaseFiles as U, authorOf as Un, REAL_COMPARE as Ut, roadmapParses as V, scheduleMinute as Vn, pathNameHit as Vt, lockedVersions as W, licenseFile as Wn, hasImportMetaMain as Wt, SHIPPED_FIELDS as X, gateTrigger as Xn, moduleUses as Xt, NPM_REGISTRY as Y, convertGate as Yn, moduleMessage as Yt, UNSHIPPED_FILES as Z, prPathFilters as Zn, modulesOf as Zt, runPrePushArgs as _, hasTests as _n, matchesAny as _r, exportsRequire as _t, listRules as a, HOMES as an, readWorkflow as ar, startsTests as at, GITHUB_YAML as b, SHARED_CI as bn, readJsonc as br, DEFAULT_ALLOWED as bt, runCli as c, mapMarkdown as cn, cuePreset as cr, isGitSpecifier as ct, HOOK_MARKER as d, npmDrift as dn, cleanPath as dr, siteCheckInCi as dt, messageOf as en, summaryName as er, unreleasedChangeRule as et, NO_READ_LINE as f, npmNames as fn, codePackages as fr, pagesAfterRelease as ft, prePush as g, serviceRunMain as gn, lineOf as gr, pagesSite as gt, parsePrePushArgs as h, runCalls as hn, keyLine as hr, pagesCalls as ht, formatResult as i, HOME_EXPORTS as in, readAction as ir, parseAdvisory as it, typedFiles as j, hasSummaryJob as jn, PRIVATE_NAME_LIST as jt, configsOfScript as k, SUMMARY_GATES as kn, parseRuleConfig as kr, privatePatterns as kt, runFix as l, mapText as ln, DEPENDENCY_FIELDS as lr, isPinned as lt, installHook as m, SERVICE_PACKAGE as mn, inFolder as mr, PAGES_WORKFLOWS as mt, annotations as n, reposOf as nn, MATRIX_EXPAND_MAX as nr, hiddenFailures as nt, readConfig as o, MAP_RULE as on, yamlFaults as or, swallowsTests as ot, PRE_PUSH_HOOK as p, readOverlay as pn, hasFile as pr, pushMainOnly as pt, publishedMinorRule as q, repositoryIsPublic as qn, apiReportScript as qt, createContext as r, signaturesOf as rn, parseWorkflow as rr, jobFails as rt, runChecks as s, findHomes as sn, STRICT_OPTIONS as sr, pipeFails as st, USAGE as t, repoOf as tn, gateAfterCancel as tr, playwrightInstall as tt, summaryMarkdown as u, mergeHomes as un, RULE_WARN_DAYS as ur, pinnedGitDeps as ut, RULES as v, tsconfigTest as vn, parseCatFileBatch as vr, publishTextSafe as vt, versionTitle as w, setupCue as wn, runGitShow as wr, PRIVATE_PATTERNS_VARIABLE as wt, workflowParses as x, SHARED_WORKFLOWS as xn, replaceLine as xr, HOME_PATTERNS as xt, workspaceProtocol as y, SHARED_ACTIONS as yn, parseJsonc as yr, packNoBuildinfo as yt, sharedDocsRule as z, withOneJob as zn, nameMatches as zt };
|
|
24368
24433
|
|
|
24369
|
-
//# sourceMappingURL=run-
|
|
24434
|
+
//# sourceMappingURL=run-BkkhkBof.js.map
|