@@ -20,7 +20,7 @@ import (
2020 "code.gitea.io/gitea/modules/proxy"
2121 "code.gitea.io/gitea/modules/structs"
2222
23- "github.com/google/go-github/v61 /github"
23+ "github.com/google/go-github/v71 /github"
2424 "golang.org/x/oauth2"
2525)
2626
@@ -441,9 +441,11 @@ func (g *GithubDownloaderV3) GetIssues(ctx context.Context, page, perPage int) (
441441 if ! g .SkipReactions {
442442 for i := 1 ; ; i ++ {
443443 g .waitAndPickClient (ctx )
444- res , resp , err := g .getClient ().Reactions .ListIssueReactions (ctx , g .repoOwner , g .repoName , issue .GetNumber (), & github.ListOptions {
445- Page : i ,
446- PerPage : perPage ,
444+ res , resp , err := g .getClient ().Reactions .ListIssueReactions (ctx , g .repoOwner , g .repoName , issue .GetNumber (), & github.ListReactionOptions {
445+ ListOptions : github.ListOptions {
446+ Page : i ,
447+ PerPage : perPage ,
448+ },
447449 })
448450 if err != nil {
449451 return nil , false , err
@@ -527,9 +529,11 @@ func (g *GithubDownloaderV3) getComments(ctx context.Context, commentable base.C
527529 if ! g .SkipReactions {
528530 for i := 1 ; ; i ++ {
529531 g .waitAndPickClient (ctx )
530- res , resp , err := g .getClient ().Reactions .ListIssueCommentReactions (ctx , g .repoOwner , g .repoName , comment .GetID (), & github.ListOptions {
531- Page : i ,
532- PerPage : g .maxPerPage ,
532+ res , resp , err := g .getClient ().Reactions .ListIssueCommentReactions (ctx , g .repoOwner , g .repoName , comment .GetID (), & github.ListReactionOptions {
533+ ListOptions : github.ListOptions {
534+ Page : i ,
535+ PerPage : g .maxPerPage ,
536+ },
533537 })
534538 if err != nil {
535539 return nil , err
@@ -602,9 +606,11 @@ func (g *GithubDownloaderV3) GetAllComments(ctx context.Context, page, perPage i
602606 if ! g .SkipReactions {
603607 for i := 1 ; ; i ++ {
604608 g .waitAndPickClient (ctx )
605- res , resp , err := g .getClient ().Reactions .ListIssueCommentReactions (ctx , g .repoOwner , g .repoName , comment .GetID (), & github.ListOptions {
606- Page : i ,
607- PerPage : g .maxPerPage ,
609+ res , resp , err := g .getClient ().Reactions .ListIssueCommentReactions (ctx , g .repoOwner , g .repoName , comment .GetID (), & github.ListReactionOptions {
610+ ListOptions : github.ListOptions {
611+ Page : i ,
612+ PerPage : g .maxPerPage ,
613+ },
608614 })
609615 if err != nil {
610616 return nil , false , err
@@ -673,9 +679,11 @@ func (g *GithubDownloaderV3) GetPullRequests(ctx context.Context, page, perPage
673679 if ! g .SkipReactions {
674680 for i := 1 ; ; i ++ {
675681 g .waitAndPickClient (ctx )
676- res , resp , err := g .getClient ().Reactions .ListIssueReactions (ctx , g .repoOwner , g .repoName , pr .GetNumber (), & github.ListOptions {
677- Page : i ,
678- PerPage : perPage ,
682+ res , resp , err := g .getClient ().Reactions .ListIssueReactions (ctx , g .repoOwner , g .repoName , pr .GetNumber (), & github.ListReactionOptions {
683+ ListOptions : github.ListOptions {
684+ Page : i ,
685+ PerPage : perPage ,
686+ },
679687 })
680688 if err != nil {
681689 return nil , false , err
@@ -760,9 +768,11 @@ func (g *GithubDownloaderV3) convertGithubReviewComments(ctx context.Context, cs
760768 if ! g .SkipReactions {
761769 for i := 1 ; ; i ++ {
762770 g .waitAndPickClient (ctx )
763- res , resp , err := g .getClient ().Reactions .ListPullRequestCommentReactions (ctx , g .repoOwner , g .repoName , c .GetID (), & github.ListOptions {
764- Page : i ,
765- PerPage : g .maxPerPage ,
771+ res , resp , err := g .getClient ().Reactions .ListPullRequestCommentReactions (ctx , g .repoOwner , g .repoName , c .GetID (), & github.ListReactionOptions {
772+ ListOptions : github.ListOptions {
773+ Page : i ,
774+ PerPage : g .maxPerPage ,
775+ },
766776 })
767777 if err != nil {
768778 return nil , err
0 commit comments