motiv-labs / janus

An API Gateway written in Go
https://hellofresh.gitbooks.io/janus
MIT License
2.79k stars 317 forks source link

Fixing a build failure when all modules are built. #344

Closed amukherj closed 5 years ago

amukherj commented 6 years ago

What does this PR do?

Accessing client.Organizations.ListUserTeams is incorrect. The correct way to get user teams is:

client.Teams.ListUserTeams
s4nji commented 5 years ago

Hello! Thanks for the PR, seems like it is indeed the correct way to obtain the user team in the latest version of google/go-github:

https://github.com/google/go-github/blob/b1f138353a6287df5156971b3963e9107eca06a1/github/orgs_teams.go#L382 https://github.com/google/go-github/blob/cc20b8df44a10cf7439649ec5a2192f06e97fe43/github/teams.go#L356

I'm closing this pull request since it requires Gopkg.lock to be updated as well, it will be done in https://github.com/hellofresh/janus/pull/410.