Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate reviews when migrating repository from github #9463

Merged
merged 17 commits into from
Jan 23, 2020
Prev Previous commit
fix review comment reactions
  • Loading branch information
lunny committed Jan 23, 2020
commit f37545bca0ad2cc83adf119a020ba75cd3db7516
2 changes: 0 additions & 2 deletions modules/migrations/gitea.go
Original file line number Diff line number Diff line change
Expand Up @@ -821,8 +821,6 @@ func (g *GiteaLocalUploader) CreateReviews(reviews ...*base.Review) error {
}

cms = append(cms, &cm)

// TODO: Reactions
}

return models.InsertReviews(cms)
Expand Down
2 changes: 1 addition & 1 deletion modules/migrations/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ func (g *GithubDownloaderV3) convertGithubReviewComments(cs []*github.PullReques
var reactions []*base.Reaction
for i := 1; ; i++ {
g.sleep()
res, resp, err := g.client.Reactions.ListIssueCommentReactions(g.ctx, g.repoOwner, g.repoName, c.GetID(), &github.ListOptions{
res, resp, err := g.client.Reactions.ListPullRequestCommentReactions(g.ctx, g.repoOwner, g.repoName, c.GetID(), &github.ListOptions{
Page: i,
PerPage: 100,
})
Expand Down