Skip to content

fix: use namespace CI lint endpoint to handle includes

Tomas Vik requested to merge 213-namespace-ci-validation into main

This MR changes how the extension validates CI config (command GitLab: Validate GitLab CI Config).

Before, we were using the generic /ci/lint endpoint https://docs.gitlab.com/ee/api/lint.html#validate-the-ci-yaml-configuration. This endpoint was able to validate syntax but not local includes.

With this change, we use the specific /projects/{projectId}/ci/lint endpoint that checks the local files for includes. https://docs.gitlab.com/ee/api/lint.html#validate-a-ci-yaml-configuration-with-a-namespace

before header
_gitlab-ci_yml___gitlab-vscode-extension _gitlab-ci_yml___gitlab-vscode-extension

Related to #213 (closed)

Edited by Tomas Vik

Merge request reports