Skip to content

Commit

Permalink
Fix #4 - resolved type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
conortm committed Aug 31, 2015
1 parent 28739de commit 4d11174
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ language: go
sudo: false
go:
- 1.4.2
- 1.5
- tip
before_install:
- go get github.com/axw/gocov/gocov
Expand Down
4 changes: 2 additions & 2 deletions github.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (gc *githubClient) getMembersOfTeam(orgName string) ([]string, error) {
if err != nil {
return members, err
}
opt := &github.ListOptions{PerPage: 25}
opt := &github.OrganizationListTeamMembersOptions{ListOptions: github.ListOptions{PerPage: 25}}
for {
githubUsers, resp, err := gc.Organizations.ListTeamMembers(teamID, opt)
if err != nil {
Expand All @@ -80,7 +80,7 @@ func (gc *githubClient) getMembersOfTeam(orgName string) ([]string, error) {
if resp.NextPage == 0 {
break
}
opt.Page = resp.NextPage
opt.ListOptions.Page = resp.NextPage
}
githubTeamMembers[orgName] = members
return members, nil
Expand Down

0 comments on commit 4d11174

Please sign in to comment.