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

Method covertTemplateToProjectFile

src/parser-includes.ts:245–252  ·  view source on GitHub ↗
(template: string)

Source from the content-addressed store, hash-verified

243 }
244
245 static covertTemplateToProjectFile (template: string): {project: string; ref: string; file: string; domain: string} {
246 return {
247 domain: "gitlab.com",
248 project: "gitlab-org/gitlab",
249 ref: "HEAD",
250 file: `lib/gitlab/ci/templates/${template}`,
251 };
252 }
253
254 static parseIncludeComponent (component: string, gitData: GitData): ParsedComponent {
255 assert(!component.includes("://"), `This GitLab CI configuration is invalid: component: \`${component}\` should not contain protocol`);

Callers 1

initMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected