mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-06 21:48:05 +00:00
Update deps
This commit is contained in:
6
vendor/github.com/google/go-github/github/integration.go
generated
vendored
6
vendor/github.com/google/go-github/github/integration.go
generated
vendored
@@ -5,6 +5,8 @@
|
||||
|
||||
package github
|
||||
|
||||
import "context"
|
||||
|
||||
// IntegrationsService provides access to the installation related functions
|
||||
// in the GitHub API.
|
||||
//
|
||||
@@ -14,7 +16,7 @@ type IntegrationsService service
|
||||
// ListInstallations lists the installations that the current integration has.
|
||||
//
|
||||
// GitHub API docs: https://developer.github.com/v3/integrations/#find-installations
|
||||
func (s *IntegrationsService) ListInstallations(opt *ListOptions) ([]*Installation, *Response, error) {
|
||||
func (s *IntegrationsService) ListInstallations(ctx context.Context, opt *ListOptions) ([]*Installation, *Response, error) {
|
||||
u, err := addOptions("integration/installations", opt)
|
||||
if err != nil {
|
||||
return nil, nil, err
|
||||
@@ -29,7 +31,7 @@ func (s *IntegrationsService) ListInstallations(opt *ListOptions) ([]*Installati
|
||||
req.Header.Set("Accept", mediaTypeIntegrationPreview)
|
||||
|
||||
var i []*Installation
|
||||
resp, err := s.client.Do(req, &i)
|
||||
resp, err := s.client.Do(ctx, req, &i)
|
||||
if err != nil {
|
||||
return nil, resp, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user