@@ -440,7 +440,7 @@ type issuesService interface {
440440}
441441
442442type pullRequestsService interface {
443- ListPullRequestsWithCommit (ctx context.Context , owner string , repo string , sha string , opts * github.PullRequestListOptions ) ([]* github.PullRequest , * github.Response , error )
443+ ListPullRequestsWithCommit (ctx context.Context , owner string , repo string , sha string , opts * github.ListOptions ) ([]* github.PullRequest , * github.Response , error )
444444}
445445
446446type repositoriesService interface {
@@ -464,7 +464,7 @@ func (g *githubClientAdapter) GetIssues() issuesService {
464464}
465465
466466func (g * githubClientAdapter ) GetPullRequests () pullRequestsService {
467- return & pullRequestsServiceAdapter { service : g .client .PullRequests }
467+ return g .client .PullRequests
468468}
469469
470470func (g * githubClientAdapter ) GetRepositories () repositoriesService {
@@ -703,17 +703,3 @@ func (g gitHubService) Send(notification Notification, _ Destination) error {
703703
704704 return nil
705705}
706-
707- // PullRequestsServiceAdapter adapts GitHub's PullRequestsService to our interface
708- type pullRequestsServiceAdapter struct {
709- service * github.PullRequestsService
710- }
711-
712- func (a * pullRequestsServiceAdapter ) ListPullRequestsWithCommit (ctx context.Context , owner string , repo string , sha string , opts * github.PullRequestListOptions ) ([]* github.PullRequest , * github.Response , error ) {
713- // Convert PullRequestListOptions to ListOptions
714- listOpts := & github.ListOptions {
715- Page : opts .Page ,
716- PerPage : opts .PerPage ,
717- }
718- return a .service .ListPullRequestsWithCommit (ctx , owner , repo , sha , listOpts )
719- }
0 commit comments