fix: use namespace CI lint endpoint to handle includes
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 |
---|---|
Related to #213 (closed)
Edited by Tomas Vik