Unverified Commit 7ee1c43e authored by Roman Volodin's avatar Roman Volodin Committed by GitHub

Fixed multiple scope jobs selection

At the moment if we provide multiple scopes in listprojectjobs request, the library returns jobs with the last provided state in the scope list.
This is because the scope parameter should have braces in its name as shown in the example: https://docs.gitlab.com/ee/api/jobs.html#list-pipeline-jobs
parent 2f6596be
......@@ -71,7 +71,7 @@ type Job struct {
// ListJobsOptions are options for two list apis
type ListJobsOptions struct {
ListOptions
Scope []BuildStateValue `url:"scope,omitempty" json:"scope,omitempty"`
Scope []BuildStateValue `url:"scope[],omitempty" json:"scope,omitempty"`
}
// ListProjectJobs gets a list of jobs in a project.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment