Client icon indicating copy to clipboard operation
Client copied to clipboard

Create Pipeline variables are not set properly

Open ivancli opened this issue 7 months ago • 0 comments

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)

ivancli avatar Mar 21 '25 03:03 ivancli