Skip to content

Commit f37545b

Browse files
committed
fix review comment reactions
1 parent 89af332 commit f37545b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Diff for: modules/migrations/gitea.go

-2
Original file line numberDiff line numberDiff line change
@@ -821,8 +821,6 @@ func (g *GiteaLocalUploader) CreateReviews(reviews ...*base.Review) error {
821821
}
822822

823823
cms = append(cms, &cm)
824-
825-
// TODO: Reactions
826824
}
827825

828826
return models.InsertReviews(cms)

Diff for: modules/migrations/github.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ func (g *GithubDownloaderV3) convertGithubReviewComments(cs []*github.PullReques
638638
var reactions []*base.Reaction
639639
for i := 1; ; i++ {
640640
g.sleep()
641-
res, resp, err := g.client.Reactions.ListIssueCommentReactions(g.ctx, g.repoOwner, g.repoName, c.GetID(), &github.ListOptions{
641+
res, resp, err := g.client.Reactions.ListPullRequestCommentReactions(g.ctx, g.repoOwner, g.repoName, c.GetID(), &github.ListOptions{
642642
Page: i,
643643
PerPage: 100,
644644
})

0 commit comments

Comments
 (0)