MCPcopy
hub / github.com/firecow/gitlab-ci-local / isStructuredInputsFile

Method isStructuredInputsFile

src/utils.ts:568–570  ·  view source on GitHub ↗
(fileInputs: {[key: string]: any})

Source from the content-addressed store, hash-verified

566 }
567
568 static isStructuredInputsFile (fileInputs: {[key: string]: any}): boolean {
569 return fileInputs._global !== undefined || Object.keys(fileInputs).some(k => !k.startsWith("_") && typeof fileInputs[k] === "object" && fileInputs[k] !== null && !Array.isArray(fileInputs[k]));
570 }
571
572 static getGlobalFileInputs (fileInputs: {[key: string]: any}): {[key: string]: any} {
573 return Utils.isStructuredInputsFile(fileInputs) ? (fileInputs._global ?? {}) : {...fileInputs};

Callers 2

getGlobalFileInputsMethod · 0.80
initMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected