aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/google/go-github/github/activity.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/google/go-github/github/activity.go')
-rw-r--r--vendor/github.com/google/go-github/github/activity.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/vendor/github.com/google/go-github/github/activity.go b/vendor/github.com/google/go-github/github/activity.go
index ad6da2b..d6c992c 100644
--- a/vendor/github.com/google/go-github/github/activity.go
+++ b/vendor/github.com/google/go-github/github/activity.go
@@ -5,6 +5,8 @@
package github
+import "context"
+
// ActivityService handles communication with the activity related
// methods of the GitHub API.
//
@@ -51,14 +53,14 @@ type Feeds struct {
//
// Note: Private feeds are only returned when authenticating via Basic Auth
// since current feed URIs use the older, non revocable auth tokens.
-func (s *ActivityService) ListFeeds() (*Feeds, *Response, error) {
+func (s *ActivityService) ListFeeds(ctx context.Context) (*Feeds, *Response, error) {
req, err := s.client.NewRequest("GET", "feeds", nil)
if err != nil {
return nil, nil, err
}
f := &Feeds{}
- resp, err := s.client.Do(req, f)
+ resp, err := s.client.Do(ctx, req, f)
if err != nil {
return nil, resp, err
}