aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/google/go-github/github/integration.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/google/go-github/github/integration.go')
-rw-r--r--vendor/github.com/google/go-github/github/integration.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/vendor/github.com/google/go-github/github/integration.go b/vendor/github.com/google/go-github/github/integration.go
index 033ee44..6d74e44 100644
--- a/vendor/github.com/google/go-github/github/integration.go
+++ b/vendor/github.com/google/go-github/github/integration.go
@@ -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
}