@@ -41,15 +41,15 @@ func (f *fakeHydrationReader) ListIssueTimeline(_ context.Context, _, _ string,
4141 return github.ListResult [github.IssueTimelineEvent ]{Items : f .issueTimelinePages [idx ], Page : page }, nil
4242}
4343
44- func (f * fakeHydrationReader ) GetRepository (ctx context.Context , owner , name string ) (github.Repository , github.RateInfo , error ) {
44+ func (f * fakeHydrationReader ) GetRepository (_ context.Context , owner , name string ) (github.Repository , github.RateInfo , error ) {
4545 return github.Repository {Owner : owner , Name : name , NodeID : "R_1" , UpdatedAt : time .Now ()}, github.RateInfo {}, nil
4646}
4747
48- func (f * fakeHydrationReader ) ListIssues (ctx context.Context , owner , name string , opts github.ListIssueOptions ) (github.ListResult [github.Issue ], error ) {
48+ func (f * fakeHydrationReader ) ListIssues (_ context.Context , owner , name string , opts github.ListIssueOptions ) (github.ListResult [github.Issue ], error ) {
4949 return github.ListResult [github.Issue ]{}, nil
5050}
5151
52- func (f * fakeHydrationReader ) ListIssueComments (ctx context.Context , owner , name string , issueNumber int , opts github.PageOptions ) (github.ListResult [github.IssueComment ], error ) {
52+ func (f * fakeHydrationReader ) ListIssueComments (_ context.Context , owner , name string , issueNumber int , opts github.PageOptions ) (github.ListResult [github.IssueComment ], error ) {
5353 if f .failWith != nil && f .issueCommentsCalls >= f .failAfterIssueCalls {
5454 return github.ListResult [github.IssueComment ]{}, f .failWith
5555 }
@@ -66,14 +66,14 @@ func (f *fakeHydrationReader) ListIssueComments(ctx context.Context, owner, name
6666 return github.ListResult [github.IssueComment ]{Items : f .issueCommentsPages [idx ], Page : page }, nil
6767}
6868
69- func (f * fakeHydrationReader ) GetPullRequestDetails (ctx context.Context , owner , name string , number int ) (github.PullRequestDetails , github.RateInfo , error ) {
69+ func (f * fakeHydrationReader ) GetPullRequestDetails (_ context.Context , owner , name string , number int ) (github.PullRequestDetails , github.RateInfo , error ) {
7070 if f .failWith != nil {
7171 return github.PullRequestDetails {}, github.RateInfo {}, f .failWith
7272 }
7373 return f .prDetails , github.RateInfo {}, nil
7474}
7575
76- func (f * fakeHydrationReader ) ListPullRequestReviews (ctx context.Context , owner , name string , number int , opts github.PageOptions ) (github.ListResult [github.Review ], error ) {
76+ func (f * fakeHydrationReader ) ListPullRequestReviews (_ context.Context , owner , name string , number int , opts github.PageOptions ) (github.ListResult [github.Review ], error ) {
7777 if f .failWith != nil && f .prReviewsCalls >= f .failAfterIssueCalls {
7878 return github.ListResult [github.Review ]{}, f .failWith
7979 }
@@ -90,7 +90,7 @@ func (f *fakeHydrationReader) ListPullRequestReviews(ctx context.Context, owner,
9090 return github.ListResult [github.Review ]{Items : f .prReviewsPages [idx ], Page : page }, nil
9191}
9292
93- func (f * fakeHydrationReader ) ListPullRequestComments (ctx context.Context , owner , name string , number int , opts github.PageOptions ) (github.ListResult [github.ReviewComment ], error ) {
93+ func (f * fakeHydrationReader ) ListPullRequestComments (_ context.Context , owner , name string , number int , opts github.PageOptions ) (github.ListResult [github.ReviewComment ], error ) {
9494 if f .failWith != nil && f .prReviewCommentsCalls >= f .failAfterIssueCalls {
9595 return github.ListResult [github.ReviewComment ]{}, f .failWith
9696 }
@@ -365,7 +365,7 @@ func TestHydrateBoundsPagination(t *testing.T) {
365365 repo , thread := seedRepoAndThread (t , svc , corpus .ThreadKindIssue , 1 )
366366 pages := make ([][]github.IssueComment , 10 )
367367 for i := range pages {
368- pages [i ] = []github.IssueComment {{ID : int64 (i + 1 ), UpdatedAt : time .Date (2024 , 1 , 1 , 0 , 0 , int ( i ) , 0 , time .UTC )}}
368+ pages [i ] = []github.IssueComment {{ID : int64 (i + 1 ), UpdatedAt : time .Date (2024 , 1 , 1 , 0 , 0 , i , 0 , time .UTC )}}
369369 }
370370 reader := & fakeHydrationReader {issueCommentsPages : pages }
371371 svc .SetGitHubReader (reader )
0 commit comments