Skip to content

Commit

Permalink
Merge pull request #410 from hellofresh/patch/update-go-github
Browse files Browse the repository at this point in the history
Update github client dependency
  • Loading branch information
s4nji authored Aug 26, 2019
2 parents 23a9164 + a2f895a commit 41a8889
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
25 changes: 20 additions & 5 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@

[[constraint]]
name = "github.com/google/go-github"
branch = "master"
version = "28.0.0"

[[constraint]]
name = "github.com/hellofresh/health-go"
Expand Down
2 changes: 1 addition & 1 deletion pkg/jwt/github/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (c *client) Teams(httpClient *http.Client) (OrganizationTeams, error) {
organizationTeams := OrganizationTeams{}

for nextPage != 0 {
teams, resp, err := client.Organizations.ListUserTeams(context.TODO(), &github.ListOptions{Page: nextPage})
teams, resp, err := client.Teams.ListUserTeams(context.TODO(), &github.ListOptions{Page: nextPage})
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 41a8889

Please sign in to comment.