@@ -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
@@ -448,9 +448,11 @@ func (g *GithubDownloaderV3) GetIssues(page, perPage int) ([]*base.Issue, bool,
448448 if ! g .SkipReactions {
449449 for i := 1 ; ; i ++ {
450450 g .waitAndPickClient ()
451- res , resp , err := g .getClient ().Reactions .ListIssueReactions (g .ctx , g .repoOwner , g .repoName , issue .GetNumber (), & github.ListOptions {
452- Page : i ,
453- PerPage : perPage ,
451+ res , resp , err := g .getClient ().Reactions .ListIssueReactions (g .ctx , g .repoOwner , g .repoName , issue .GetNumber (), & github.ListReactionOptions {
452+ ListOptions : github.ListOptions {
453+ Page : i ,
454+ PerPage : perPage ,
455+ },
454456 })
455457 if err != nil {
456458 return nil , false , err
@@ -534,9 +536,11 @@ func (g *GithubDownloaderV3) getComments(commentable base.Commentable) ([]*base.
534536 if ! g .SkipReactions {
535537 for i := 1 ; ; i ++ {
536538 g .waitAndPickClient ()
537- res , resp , err := g .getClient ().Reactions .ListIssueCommentReactions (g .ctx , g .repoOwner , g .repoName , comment .GetID (), & github.ListOptions {
538- Page : i ,
539- PerPage : g .maxPerPage ,
539+ res , resp , err := g .getClient ().Reactions .ListIssueCommentReactions (g .ctx , g .repoOwner , g .repoName , comment .GetID (), & github.ListReactionOptions {
540+ ListOptions : github.ListOptions {
541+ Page : i ,
542+ PerPage : g .maxPerPage ,
543+ },
540544 })
541545 if err != nil {
542546 return nil , err
@@ -609,9 +613,11 @@ func (g *GithubDownloaderV3) GetAllComments(page, perPage int) ([]*base.Comment,
609613 if ! g .SkipReactions {
610614 for i := 1 ; ; i ++ {
611615 g .waitAndPickClient ()
612- res , resp , err := g .getClient ().Reactions .ListIssueCommentReactions (g .ctx , g .repoOwner , g .repoName , comment .GetID (), & github.ListOptions {
613- Page : i ,
614- PerPage : g .maxPerPage ,
616+ res , resp , err := g .getClient ().Reactions .ListIssueCommentReactions (g .ctx , g .repoOwner , g .repoName , comment .GetID (), & github.ListReactionOptions {
617+ ListOptions : github.ListOptions {
618+ Page : i ,
619+ PerPage : g .maxPerPage ,
620+ },
615621 })
616622 if err != nil {
617623 return nil , false , err
@@ -680,9 +686,11 @@ func (g *GithubDownloaderV3) GetPullRequests(page, perPage int) ([]*base.PullReq
680686 if ! g .SkipReactions {
681687 for i := 1 ; ; i ++ {
682688 g .waitAndPickClient ()
683- res , resp , err := g .getClient ().Reactions .ListIssueReactions (g .ctx , g .repoOwner , g .repoName , pr .GetNumber (), & github.ListOptions {
684- Page : i ,
685- PerPage : perPage ,
689+ res , resp , err := g .getClient ().Reactions .ListIssueReactions (g .ctx , g .repoOwner , g .repoName , pr .GetNumber (), & github.ListReactionOptions {
690+ ListOptions : github.ListOptions {
691+ Page : i ,
692+ PerPage : perPage ,
693+ },
686694 })
687695 if err != nil {
688696 return nil , false , err
@@ -767,9 +775,11 @@ func (g *GithubDownloaderV3) convertGithubReviewComments(cs []*github.PullReques
767775 if ! g .SkipReactions {
768776 for i := 1 ; ; i ++ {
769777 g .waitAndPickClient ()
770- res , resp , err := g .getClient ().Reactions .ListPullRequestCommentReactions (g .ctx , g .repoOwner , g .repoName , c .GetID (), & github.ListOptions {
771- Page : i ,
772- PerPage : g .maxPerPage ,
778+ res , resp , err := g .getClient ().Reactions .ListPullRequestCommentReactions (g .ctx , g .repoOwner , g .repoName , c .GetID (), & github.ListReactionOptions {
779+ ListOptions : github.ListOptions {
780+ Page : i ,
781+ PerPage : g .maxPerPage ,
782+ },
773783 })
774784 if err != nil {
775785 return nil , err
0 commit comments