@@ -20,7 +20,7 @@ import (
20
20
"code.gitea.io/gitea/modules/proxy"
21
21
"code.gitea.io/gitea/modules/structs"
22
22
23
- "github.com/google/go-github/v61 /github"
23
+ "github.com/google/go-github/v71 /github"
24
24
"golang.org/x/oauth2"
25
25
)
26
26
@@ -448,9 +448,11 @@ func (g *GithubDownloaderV3) GetIssues(page, perPage int) ([]*base.Issue, bool,
448
448
if ! g .SkipReactions {
449
449
for i := 1 ; ; i ++ {
450
450
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
+ },
454
456
})
455
457
if err != nil {
456
458
return nil , false , err
@@ -534,9 +536,11 @@ func (g *GithubDownloaderV3) getComments(commentable base.Commentable) ([]*base.
534
536
if ! g .SkipReactions {
535
537
for i := 1 ; ; i ++ {
536
538
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
+ },
540
544
})
541
545
if err != nil {
542
546
return nil , err
@@ -609,9 +613,11 @@ func (g *GithubDownloaderV3) GetAllComments(page, perPage int) ([]*base.Comment,
609
613
if ! g .SkipReactions {
610
614
for i := 1 ; ; i ++ {
611
615
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
+ },
615
621
})
616
622
if err != nil {
617
623
return nil , false , err
@@ -680,9 +686,11 @@ func (g *GithubDownloaderV3) GetPullRequests(page, perPage int) ([]*base.PullReq
680
686
if ! g .SkipReactions {
681
687
for i := 1 ; ; i ++ {
682
688
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
+ },
686
694
})
687
695
if err != nil {
688
696
return nil , false , err
@@ -767,9 +775,11 @@ func (g *GithubDownloaderV3) convertGithubReviewComments(cs []*github.PullReques
767
775
if ! g .SkipReactions {
768
776
for i := 1 ; ; i ++ {
769
777
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
+ },
773
783
})
774
784
if err != nil {
775
785
return nil , err
0 commit comments