@@ -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
@@ -441,9 +441,11 @@ func (g *GithubDownloaderV3) GetIssues(ctx context.Context, page, perPage int) (
441
441
if ! g .SkipReactions {
442
442
for i := 1 ; ; i ++ {
443
443
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
+ },
447
449
})
448
450
if err != nil {
449
451
return nil , false , err
@@ -527,9 +529,11 @@ func (g *GithubDownloaderV3) getComments(ctx context.Context, commentable base.C
527
529
if ! g .SkipReactions {
528
530
for i := 1 ; ; i ++ {
529
531
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
+ },
533
537
})
534
538
if err != nil {
535
539
return nil , err
@@ -602,9 +606,11 @@ func (g *GithubDownloaderV3) GetAllComments(ctx context.Context, page, perPage i
602
606
if ! g .SkipReactions {
603
607
for i := 1 ; ; i ++ {
604
608
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
+ },
608
614
})
609
615
if err != nil {
610
616
return nil , false , err
@@ -673,9 +679,11 @@ func (g *GithubDownloaderV3) GetPullRequests(ctx context.Context, page, perPage
673
679
if ! g .SkipReactions {
674
680
for i := 1 ; ; i ++ {
675
681
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
+ },
679
687
})
680
688
if err != nil {
681
689
return nil , false , err
@@ -760,9 +768,11 @@ func (g *GithubDownloaderV3) convertGithubReviewComments(ctx context.Context, cs
760
768
if ! g .SkipReactions {
761
769
for i := 1 ; ; i ++ {
762
770
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
+ },
766
776
})
767
777
if err != nil {
768
778
return nil , err
0 commit comments