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 18, 2017
1 parent ff51904 commit b5c7ba2
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 @@ -720,7 +720,7 @@ func (config *Config) SetBranchProtection(name string, contexts []string) error
Strict: false,
Contexts: contexts,
},
RequiredPullRequestReviews: prot.RequiredPullRequestReviews,
RequiredPullRequestReviews: *github.PullRequestReviewsEnforcementRequest,
Restrictions: unchangedRestrictionRequest(prot.Restrictions),
EnforceAdmins: false,
}
Expand Down

0 comments on commit b5c7ba2

Please sign in to comment.