| 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`); |