1
0
Fork 0
forked from forgejo/forgejo

[Vendor] Update xanzy/go-gitlab v0.31.0 => v0.37.0 (#12701)

* update github.com/xanzy/go-gitlab v0.31.0 => v0.37.0

* vendor

* adapt changes

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
6543 2020-09-06 17:37:53 +02:00 committed by GitHub
parent 0ed5e103fe
commit 0c6a802731
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
44 changed files with 2436 additions and 776 deletions

View file

@ -93,13 +93,13 @@ func (s *GroupClustersService) GetCluster(pid interface{}, cluster int, options
return nil, nil, err
}
pc := new(GroupCluster)
resp, err := s.client.Do(req, &pc)
gc := new(GroupCluster)
resp, err := s.client.Do(req, &gc)
if err != nil {
return nil, resp, err
}
return pc, resp, err
return gc, resp, err
}
// AddGroupClusterOptions represents the available AddCluster() options.
@ -141,13 +141,13 @@ func (s *GroupClustersService) AddCluster(pid interface{}, opt *AddGroupClusterO
return nil, nil, err
}
pc := new(GroupCluster)
resp, err := s.client.Do(req, pc)
gc := new(GroupCluster)
resp, err := s.client.Do(req, gc)
if err != nil {
return nil, resp, err
}
return pc, resp, err
return gc, resp, err
}
// EditGroupClusterOptions represents the available EditCluster() options.
@ -185,13 +185,13 @@ func (s *GroupClustersService) EditCluster(pid interface{}, cluster int, opt *Ed
return nil, nil, err
}
pc := new(GroupCluster)
resp, err := s.client.Do(req, pc)
gc := new(GroupCluster)
resp, err := s.client.Do(req, gc)
if err != nil {
return nil, resp, err
}
return pc, resp, err
return gc, resp, err
}
// DeleteCluster deletes an existing group cluster.