Client
Client copied to clipboard
Create Pipeline variables are not set properly
The GitLab API documentation specifies that pipeline variables should be included directly in the request body (see: https://docs.gitlab.com/api/pipelines/#create-a-new-pipeline).
However, the createPipeline() method in the GitLab PHP Client incorrectly places these variables within a variables field in the request body, leading to a variables is invalid error from the GitLab API.
(see: https://github.com/GitLabPHP/Client/blob/362450ff932296bc15796f97da8cf57941650037/src/Api/Projects.php#L355)