| 59 | } |
| 60 | |
| 61 | private static normalizeTriggerInclude (gitlabData: any, opts: ParserIncludesInitOptions) { |
| 62 | const {writeStreams} = opts; |
| 63 | for (const [jobName, jobData] of Object.entries<any>(gitlabData ?? {})) { |
| 64 | if (typeof jobData.trigger?.include === "string") { |
| 65 | jobData.trigger.include = [{ |
| 66 | local: jobData.trigger.include, |
| 67 | } ]; |
| 68 | } else if (jobData.trigger?.project) { |
| 69 | writeStreams.memoStdout(chalk`{bgYellowBright WARN } The job: \`{blueBright ${jobName}}\` will be no-op. Multi-project pipeline is not supported by gitlab-ci-local\n`); |
| 70 | } |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | static async init (gitlabData: any, opts: ParserIncludesInitOptions): Promise<any[]> { |
| 75 | const {argv, inputs: inputsConfig} = opts; |