@mark1russell7/conventions 0.38.1 → 0.38.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/build/cli.js +1 -1
- package/build/index.d.ts +10 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -2
- package/build/{run-DrVkbk7l.js → run-DJGaAV-C.js} +56 -15
- package/build/run-DJGaAV-C.js.map +1 -0
- package/package.json +1 -1
- package/build/run-DrVkbk7l.js.map +0 -1
package/build/cli.js
CHANGED
package/build/index.d.ts
CHANGED
|
@@ -771,10 +771,12 @@ interface WorkflowJob {
|
|
|
771
771
|
readonly needs: readonly string[];
|
|
772
772
|
readonly steps: readonly WorkflowStep[];
|
|
773
773
|
}
|
|
774
|
-
/** A shared workflow of the repository. */
|
|
774
|
+
/** A shared workflow of the repository, or a composite action in the same form. */
|
|
775
775
|
interface Workflow {
|
|
776
776
|
/** The file name, for example `reusable-pages.yml`. */
|
|
777
777
|
readonly file: string;
|
|
778
|
+
/** The value `action` marks a composite action of {@link readAction}. A workflow has no value here. */
|
|
779
|
+
readonly kind?: "action";
|
|
778
780
|
/** The value of `name`. */
|
|
779
781
|
readonly name: string;
|
|
780
782
|
/** The first lines of the comment at the top of the file. */
|
|
@@ -784,6 +786,13 @@ interface Workflow {
|
|
|
784
786
|
}
|
|
785
787
|
/** This function reads a shared workflow file. The file name goes into the result. */
|
|
786
788
|
export declare function readWorkflow(file: string, text: string): Workflow;
|
|
789
|
+
/**
|
|
790
|
+
* This function reads a composite action (`action.yml`) in the form of a workflow. The steps of `runs` are the steps of
|
|
791
|
+
* one job `steps`. An input of a composite action has no type, so an input with the default `true` or `false` gets the
|
|
792
|
+
* type `boolean`. The value of such an input is still a string for the runner. The description of the action is the
|
|
793
|
+
* summary. An action that is not composite gives no job.
|
|
794
|
+
*/
|
|
795
|
+
export declare function readAction(file: string, text: string): Workflow;
|
|
787
796
|
/**
|
|
788
797
|
* The rule for the git tag and the text of a GitHub release of a package version.
|
|
789
798
|
*
|
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-one-job.ts","../src/rules/setup-cue.ts","../src/rules/shared-ci.ts","../src/rules/service-run-main.ts","../src/map.ts","../src/rules/home-package.ts","../src/rules/license-file.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/pinned-git-deps.ts","../src/rules/pipe-fails.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/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/workflow.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;;EAET;;EAEA,IAAI;;;KAIM,uBAAuB;WAAqB;;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ules/cue-preset.ts","../src/rules/gate-after-cancel.ts","../src/rules/gate-trigger.ts","../src/rules/security-one-job.ts","../src/rules/setup-cue.ts","../src/rules/shared-ci.ts","../src/rules/service-run-main.ts","../src/map.ts","../src/rules/home-package.ts","../src/rules/license-file.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/pinned-git-deps.ts","../src/rules/pipe-fails.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/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/workflow.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;;EAET;;EAEA,IAAI;;;KAIM,uBAAuB;WAAqB;;;UAGvC;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA,kBAAkB;;WAElB,SAAS,SAAS,eAAe;;;;;WAKjC;EACT,MAAM,SAAS,aAAa,SAAS,UAAU;;;qBAIp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@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as unreleasedChangeRule, $t as mergeHomes, A as typedFiles, An as
|
|
1
|
+
import { $ as unreleasedChangeRule, $t as mergeHomes, A as typedFiles, An as cleanPath, At as nameMatches, B as roadmapParses, Bn as runGit, Bt as licenseFileOf, C as versionTitle, Cn as summaryName, Ct as PRIVATE_NAME_LIST, D as typedScripts, Dn as STRICT_OPTIONS, Dt as isCommonUse, E as trustPolicy, En as readWorkflow, Et as isAllowedHit, F as HOME_TIMEOUT_MS, Fn as lineOf, Ft as hasImportMetaMain, G as publishedMinor, Gt as messageOf, H as releaseFiles, Hn as defaultOptions, Ht as repositoryIsPublic, I as blockHash, In as matchesAny, It as mainCheck, J as NPM_REGISTRY, Jt as HOMES, K as publishedMinorRule, Kt as repoOf, L as githubFetch, Ln as parseJsonc, Lt as LICENSE_TEXTS, M as isSourcePath, Mn as hasFile, Mt as pathNameHit, N as pathsOf, Nn as inFolder, Nt as noBuildOutput, O as configsOfScript, On as cuePreset, Ot as lineNameHit, P as sourceMain, Pn as keyLine, Pt as REAL_COMPARE, Q as unreleasedChange, Qt as mapText, R as sharedDocsRule, Rn as readJsonc, Rt as authorOf, S as setVersions, Sn as prPathFilters, St as privateTextBreaks, T as TRAIN_SCOPES, Tn as readAction, Tt as firstNameMatch, U as lockedVersions, Un as parseConfig, Ut as declaredName, V as requiredScripts, Vn as specifiersOf, Vt as mitText, W as minorOf, Wt as homePackage, X as UNSHIPPED_FILES, Xt as findHomes, Y as SHIPPED_FIELDS, Yt as MAP_RULE, Z as npmLookup, Zt as mapMarkdown, _ as workspaceProtocol, _n as securityOneJob, _t as PRIVATE_PATTERNS_VARIABLE, a as listRules, an as hasTests, at as repositoryOfRemote, b as yamlFaults, bn as convertGate, bt as privateNamesFile, c as runCli, cn as SHARED_CI, ct as pushMainOnly, d as HOOK_MARKER, dn as sharedCi, dt as pagesSite, en as readOverlay, et as pipeFails, f as NO_READ_LINE, fn as setupCue, ft as apiReportScript, g as RULES, gn as securityCallers, gt as PRIVATE_NAMES_FILE_VARIABLE, h as prePush, hn as SECURITY_TIMEOUT_MINUTES, ht as PRIVATE_NAMES_FILE_CONFIG, i as formatResult, in as serviceRunMain, it as pagesAfterRelease, j as testsRequired, jn as codePackages, jt as parsePrivateNames, k as scriptsOf, kn as DEPENDENCY_FIELDS, kt as lineNameHits, l as runFix, ln as SHARED_WORKFLOWS, lt as PAGES_WORKFLOWS, m as installHook, mn as SECURITY_SCAN_INPUTS, mt as HOME_PATTERNS, n as annotations, nn as SERVICE_PACKAGE, nt as isPinned, o as readConfig, on as tsconfigTest, ot as runnerBudget, p as PRE_PUSH_HOOK, pn as SECURITY_SCAN_COMMIT, pt as DEFAULT_ALLOWED, q as reachOf, qt as signaturesOf, r as createContext, rn as runCalls, rt as pinnedGitDeps, s as runChecks, sn as SHARED_ACTIONS, st as scheduleMinute, t as USAGE, tn as HOME_EXPORTS, tt as isGitSpecifier, u as summaryMarkdown, un as callsSharedCi, ut as pagesCalls, v as GITHUB_YAML, vn as withOneJob, vt as invalidPatternBreaks, w as IGNORE_AFTER, wn as gateAfterCancel, wt as PrivateNameListError, x as namedVersions, xn as gateTrigger, xt as privatePatterns, y as workflowParses, yn as ACTIONS_COMMIT, yt as noLocalPaths, z as roadmapOfLine, zn as replaceLine, zt as licenseFile } from "./run-DJGaAV-C.js";
|
|
2
2
|
import { i as packageFolders, n as globFolders, r as globToRegExp, s as workspaceGlobs } from "./workspace-Cx7p7bWn.js";
|
|
3
3
|
// src/release-text.ts
|
|
4
4
|
/**
|
|
@@ -65,6 +65,6 @@ function releaseNotes(name, version, changelog) {
|
|
|
65
65
|
if (section.length <= 1e5) return section;
|
|
66
66
|
return `${section.slice(0, MAX_NOTES)}\n\n(The CHANGELOG.md of \`${name}\` has the full text.)`;
|
|
67
67
|
}
|
|
68
|
-
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, PAGES_WORKFLOWS, PRE_PUSH_HOOK, PRIVATE_NAMES_FILE_CONFIG, PRIVATE_NAMES_FILE_VARIABLE, PRIVATE_NAME_LIST, PRIVATE_PATTERNS_VARIABLE, PrivateNameListError, REAL_COMPARE, RULES, SECURITY_SCAN_COMMIT, SECURITY_SCAN_INPUTS, SECURITY_TIMEOUT_MINUTES, SERVICE_PACKAGE, SHARED_ACTIONS, SHARED_CI, SHARED_WORKFLOWS, SHIPPED_FIELDS, STRICT_OPTIONS, TRAIN_SCOPES, UNSHIPPED_FILES, USAGE, annotations, apiReportScript, authorOf, blockHash, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, convertGate, createContext, cuePreset, declaredName, defaultOptions, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, globFolders, globToRegExp, hasFile, hasImportMetaMain, hasTests, homePackage, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCommonUse, isGitSpecifier, isPinned, isSourcePath, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, mergeHomes, messageOf, minorOf, mitText, nameMatches, namedVersions, noBuildOutput, noLocalPaths, npmLookup, npmUrl, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseConfig, parseJsonc, parsePrivateNames, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, prPathFilters, prePush, privateNamesFile, privatePatterns, privateTextBreaks, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseNotes, replaceLine, repoOf, repositoryIsPublic, repositoryOfRemote, requiredScripts, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runnerBudget, scheduleMinute, scriptsOf, securityCallers, securityOneJob, serviceRunMain, setVersions, setupCue, sharedCi, sharedDocsRule, signaturesOf, sourceMain, specifiersOf, summaryMarkdown, summaryName, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workspaceGlobs, workspaceProtocol, yamlFaults };
|
|
68
|
+
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, PAGES_WORKFLOWS, PRE_PUSH_HOOK, PRIVATE_NAMES_FILE_CONFIG, PRIVATE_NAMES_FILE_VARIABLE, PRIVATE_NAME_LIST, PRIVATE_PATTERNS_VARIABLE, PrivateNameListError, REAL_COMPARE, RULES, SECURITY_SCAN_COMMIT, SECURITY_SCAN_INPUTS, SECURITY_TIMEOUT_MINUTES, SERVICE_PACKAGE, SHARED_ACTIONS, SHARED_CI, SHARED_WORKFLOWS, SHIPPED_FIELDS, STRICT_OPTIONS, TRAIN_SCOPES, UNSHIPPED_FILES, USAGE, annotations, apiReportScript, authorOf, blockHash, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, convertGate, createContext, cuePreset, declaredName, defaultOptions, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, githubFetch, globFolders, globToRegExp, hasFile, hasImportMetaMain, hasTests, homePackage, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCommonUse, isGitSpecifier, isPinned, isSourcePath, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, mergeHomes, messageOf, minorOf, mitText, nameMatches, namedVersions, noBuildOutput, noLocalPaths, npmLookup, npmUrl, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseConfig, parseJsonc, parsePrivateNames, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, prPathFilters, prePush, privateNamesFile, privatePatterns, privateTextBreaks, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readAction, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseNotes, replaceLine, repoOf, repositoryIsPublic, repositoryOfRemote, requiredScripts, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runnerBudget, scheduleMinute, scriptsOf, securityCallers, securityOneJob, serviceRunMain, setVersions, setupCue, sharedCi, sharedDocsRule, signaturesOf, sourceMain, specifiersOf, summaryMarkdown, summaryName, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workspaceGlobs, workspaceProtocol, yamlFaults };
|
|
69
69
|
|
|
70
70
|
//# sourceMappingURL=index.js.map
|
|
@@ -1368,19 +1368,7 @@ function readWorkflow(file, text) {
|
|
|
1368
1368
|
if (jobsEntry) for (const [id, entry] of childrenOf(lines, jobsEntry.line)) {
|
|
1369
1369
|
const keys = childrenOf(lines, entry.line);
|
|
1370
1370
|
const stepsEntry = keys.get("steps");
|
|
1371
|
-
const steps = [];
|
|
1372
|
-
if (stepsEntry) {
|
|
1373
|
-
const items = itemsOf(lines, stepsEntry.line);
|
|
1374
|
-
const last = blockEnd(lines, stepsEntry.line);
|
|
1375
|
-
items.forEach((start, n) => {
|
|
1376
|
-
const step = entries(lines, start, items[n + 1] ?? last, indentOf$1(lines[start] ?? "") + 2);
|
|
1377
|
-
steps.push({
|
|
1378
|
-
label: stepLabel(step),
|
|
1379
|
-
if: step.get("if")?.value ?? "",
|
|
1380
|
-
uses: actionOf(step.get("uses")?.value ?? "")
|
|
1381
|
-
});
|
|
1382
|
-
});
|
|
1383
|
-
}
|
|
1371
|
+
const steps = stepsEntry ? stepsOf(lines, stepsEntry.line) : [];
|
|
1384
1372
|
const uses = keys.get("uses")?.value;
|
|
1385
1373
|
if (steps.length === 0 && uses) steps.push({
|
|
1386
1374
|
label: `calls ${actionOf(uses)}`,
|
|
@@ -1402,6 +1390,59 @@ function readWorkflow(file, text) {
|
|
|
1402
1390
|
jobs
|
|
1403
1391
|
};
|
|
1404
1392
|
}
|
|
1393
|
+
/** This function gives the steps of the list under the line `index`. */
|
|
1394
|
+
function stepsOf(lines, index) {
|
|
1395
|
+
const items = itemsOf(lines, index);
|
|
1396
|
+
const last = blockEnd(lines, index);
|
|
1397
|
+
return items.map((start, n) => {
|
|
1398
|
+
const step = entries(lines, start, items[n + 1] ?? last, indentOf$1(lines[start] ?? "") + 2);
|
|
1399
|
+
return {
|
|
1400
|
+
label: stepLabel(step),
|
|
1401
|
+
if: step.get("if")?.value ?? "",
|
|
1402
|
+
uses: actionOf(step.get("uses")?.value ?? "")
|
|
1403
|
+
};
|
|
1404
|
+
});
|
|
1405
|
+
}
|
|
1406
|
+
/**
|
|
1407
|
+
* This function reads a composite action (`action.yml`) in the form of a workflow. The steps of `runs` are the steps of
|
|
1408
|
+
* one job `steps`. An input of a composite action has no type, so an input with the default `true` or `false` gets the
|
|
1409
|
+
* type `boolean`. The value of such an input is still a string for the runner. The description of the action is the
|
|
1410
|
+
* summary. An action that is not composite gives no job.
|
|
1411
|
+
*/
|
|
1412
|
+
function readAction(file, text) {
|
|
1413
|
+
const lines = workflowLines(text);
|
|
1414
|
+
const top = entries(lines, 0, lines.length, 0);
|
|
1415
|
+
const inputs = [];
|
|
1416
|
+
const inputsEntry = top.get("inputs");
|
|
1417
|
+
if (inputsEntry) for (const [name, entry] of childrenOf(lines, inputsEntry.line)) {
|
|
1418
|
+
const keys = childrenOf(lines, entry.line);
|
|
1419
|
+
const value = keys.get("default")?.value ?? "";
|
|
1420
|
+
inputs.push({
|
|
1421
|
+
name,
|
|
1422
|
+
type: value === "true" || value === "false" ? "boolean" : "string",
|
|
1423
|
+
description: keys.get("description")?.value ?? "",
|
|
1424
|
+
default: value,
|
|
1425
|
+
required: keys.get("required")?.value === "true"
|
|
1426
|
+
});
|
|
1427
|
+
}
|
|
1428
|
+
const runs = top.get("runs");
|
|
1429
|
+
const keys = runs ? childrenOf(lines, runs.line) : /* @__PURE__ */ new Map();
|
|
1430
|
+
const stepsEntry = keys.get("using")?.value === "composite" ? keys.get("steps") : void 0;
|
|
1431
|
+
const jobs = stepsEntry ? [{
|
|
1432
|
+
id: "steps",
|
|
1433
|
+
if: "",
|
|
1434
|
+
needs: [],
|
|
1435
|
+
steps: stepsOf(lines, stepsEntry.line)
|
|
1436
|
+
}] : [];
|
|
1437
|
+
return {
|
|
1438
|
+
file,
|
|
1439
|
+
kind: "action",
|
|
1440
|
+
name: top.get("name")?.value ?? file,
|
|
1441
|
+
summary: top.get("description")?.value ?? "",
|
|
1442
|
+
inputs,
|
|
1443
|
+
jobs
|
|
1444
|
+
};
|
|
1445
|
+
}
|
|
1405
1446
|
// src/rules/gate-after-cancel.ts
|
|
1406
1447
|
/**
|
|
1407
1448
|
* The rule `gate-after-cancel`: a summary job of a gate does not start after a cancel. A job with `if: always()` still
|
|
@@ -14334,6 +14375,6 @@ function runHook(args, io) {
|
|
|
14334
14375
|
git: (gitArgs) => runGit(io.cwd, gitArgs)
|
|
14335
14376
|
}, io);
|
|
14336
14377
|
}
|
|
14337
|
-
export { unreleasedChangeRule as $, mergeHomes as $t, typedFiles as A,
|
|
14378
|
+
export { unreleasedChangeRule as $, mergeHomes as $t, typedFiles as A, cleanPath as An, nameMatches as At, roadmapParses as B, runGit as Bn, licenseFileOf as Bt, versionTitle as C, summaryName as Cn, PRIVATE_NAME_LIST as Ct, typedScripts as D, STRICT_OPTIONS as Dn, isCommonUse as Dt, trustPolicy as E, readWorkflow as En, isAllowedHit as Et, HOME_TIMEOUT_MS as F, lineOf as Fn, hasImportMetaMain as Ft, publishedMinor as G, messageOf as Gt, releaseFiles as H, defaultOptions as Hn, repositoryIsPublic as Ht, blockHash as I, matchesAny as In, mainCheck as It, NPM_REGISTRY as J, HOMES as Jt, publishedMinorRule as K, repoOf as Kt, githubFetch as L, parseJsonc as Ln, LICENSE_TEXTS as Lt, isSourcePath as M, hasFile as Mn, pathNameHit as Mt, pathsOf as N, inFolder as Nn, noBuildOutput as Nt, configsOfScript as O, cuePreset as On, lineNameHit as Ot, sourceMain as P, keyLine as Pn, REAL_COMPARE as Pt, unreleasedChange as Q, mapText as Qt, sharedDocsRule as R, readJsonc as Rn, authorOf as Rt, setVersions as S, prPathFilters as Sn, privateTextBreaks as St, TRAIN_SCOPES as T, readAction as Tn, firstNameMatch as Tt, lockedVersions as U, parseConfig as Un, declaredName as Ut, requiredScripts as V, specifiersOf as Vn, mitText as Vt, minorOf as W, homePackage as Wt, UNSHIPPED_FILES as X, findHomes as Xt, SHIPPED_FIELDS as Y, MAP_RULE as Yt, npmLookup as Z, mapMarkdown as Zt, workspaceProtocol as _, securityOneJob as _n, PRIVATE_PATTERNS_VARIABLE as _t, listRules as a, hasTests as an, repositoryOfRemote as at, yamlFaults as b, convertGate as bn, privateNamesFile as bt, runCli as c, SHARED_CI as cn, pushMainOnly as ct, HOOK_MARKER as d, sharedCi as dn, pagesSite as dt, readOverlay as en, pipeFails as et, NO_READ_LINE as f, setupCue as fn, apiReportScript as ft, RULES as g, securityCallers as gn, PRIVATE_NAMES_FILE_VARIABLE as gt, prePush as h, SECURITY_TIMEOUT_MINUTES as hn, PRIVATE_NAMES_FILE_CONFIG as ht, formatResult as i, serviceRunMain as in, pagesAfterRelease as it, testsRequired as j, codePackages as jn, parsePrivateNames as jt, scriptsOf as k, DEPENDENCY_FIELDS as kn, lineNameHits as kt, runFix as l, SHARED_WORKFLOWS as ln, PAGES_WORKFLOWS as lt, installHook as m, SECURITY_SCAN_INPUTS as mn, HOME_PATTERNS as mt, annotations as n, SERVICE_PACKAGE as nn, isPinned as nt, readConfig as o, tsconfigTest as on, runnerBudget as ot, PRE_PUSH_HOOK as p, SECURITY_SCAN_COMMIT as pn, DEFAULT_ALLOWED as pt, reachOf as q, signaturesOf as qt, createContext as r, runCalls as rn, pinnedGitDeps as rt, runChecks as s, SHARED_ACTIONS as sn, scheduleMinute as st, USAGE as t, HOME_EXPORTS as tn, isGitSpecifier as tt, summaryMarkdown as u, callsSharedCi as un, pagesCalls as ut, GITHUB_YAML as v, withOneJob as vn, invalidPatternBreaks as vt, IGNORE_AFTER as w, gateAfterCancel as wn, PrivateNameListError as wt, namedVersions as x, gateTrigger as xn, privatePatterns as xt, workflowParses as y, ACTIONS_COMMIT as yn, noLocalPaths as yt, roadmapOfLine as z, replaceLine as zn, licenseFile as zt };
|
|
14338
14379
|
|
|
14339
|
-
//# sourceMappingURL=run-
|
|
14380
|
+
//# sourceMappingURL=run-DJGaAV-C.js.map
|