I think I've found that the GitLab API has deprecated the /api/v4/ci/lint endpoint in favor of /api/v4/projects/:projectId/ci/lint, link here. This PR updates the hook script to take in a project ID from the CLI or in the toml file. I also noticed that the toml parsing seems broken, with strings not being read in properly with quotes. I subbed in the toml library to remedy that to ensure that project IDs would be read correctly.
Please let me know thoughts, happy to make updates.
I think I've found that the GitLab API has deprecated the
/api/v4/ci/lint
endpoint in favor of/api/v4/projects/:projectId/ci/lint
, link here. This PR updates the hook script to take in a project ID from the CLI or in the toml file. I also noticed that the toml parsing seems broken, with strings not being read in properly with quotes. I subbed in the toml library to remedy that to ensure that project IDs would be read correctly.Please let me know thoughts, happy to make updates.