Skip to content

Commit

Permalink
Make mungegithub follow github changes
Browse files Browse the repository at this point in the history
This makes mungegithub follow github changes to avoid errors::

 mungegithub/github/github.go:723:29: cannot use
   prot.RequiredPullRequestReviews (type *github.PullRequestReviewsEnforcement)
   as type *github.PullRequestReviewsEnforcementRequest in field value
 mungegithub/github/github.go:1360:10: cannot use
   listOpts (type *github.ListOptions)
   as type *github.ListCollaboratorsOptions in argument to
   config.client.Repositories.ListCollaborators
  • Loading branch information
Ken'ichi Ohmichi committed Dec 16, 2017
1 parent ff51904 commit c6efdd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mungegithub/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,7 @@ func (config *Config) fetchAllCollaborators() ([]*github.User, error) {
var result []*github.User
for {
glog.V(4).Infof("Fetching page %d of all users", page)
listOpts := &github.ListOptions{PerPage: 100, Page: page}
listOpts := &github.ListCollaboratorsOptions{PerPage: 100, Page: page}
users, response, err := config.client.Repositories.ListCollaborators(
context.Background(),
config.Org,
Expand Down

0 comments on commit c6efdd1

Please sign in to comment.