* Make the github migration less rate limit waiting to get comment per page from repository but not per issue
* Fix lint
* adjust Downloader interface
* Fix missed reviews
* Fix test
* Remove unused struct
returnnil,fmt.Errorf("error while listing comments for issue #%d. Error: %v",index,err)
returnnil,false,fmt.Errorf("error while listing comments for issue #%d. Error: %v",opts.IssueNumber,err)
}
}
for_,comment:=rangecomments{
for_,comment:=rangecomments{
reactions,err:=g.getCommentReactions(comment.ID)
reactions,err:=g.getCommentReactions(comment.ID)
iferr!=nil{
iferr!=nil{
log.Warn("Unable to load comment reactions during migrating issue #%d for comment %d to %s/%s. Error: %v",index,comment.ID,g.repoOwner,g.repoName,err)
log.Warn("Unable to load comment reactions during migrating issue #%d for comment %d to %s/%s. Error: %v",opts.IssueNumber,comment.ID,g.repoOwner,g.repoName,err)
iferr2:=models.CreateRepositoryNotice(
iferr2:=models.CreateRepositoryNotice(
fmt.Sprintf("Unable to load reactions during migrating issue #%d for comment %d to %s/%s. Error: %v",index,comment.ID,g.repoOwner,g.repoName,err));err2!=nil{
fmt.Sprintf("Unable to load reactions during migrating issue #%d for comment %d to %s/%s. Error: %v",opts.IssueNumber,comment.ID,g.repoOwner,g.repoName,err));err2!=nil{