We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c8b8ef commit 9af6292Copy full SHA for 9af6292
services/migrations/gitea_uploader.go
@@ -476,7 +476,10 @@ func (g *GiteaLocalUploader) prepareComments(comments ...*base.Comment) ([]*issu
476
var issue *issues_model.Issue
477
issue, ok := g.issues[comment.IssueIndex]
478
if !ok {
479
- return nil, fmt.Errorf("comment references non existent IssueIndex %d", comment.IssueIndex)
+ // ignore comments for non existent issues
480
+ // It can happen when a comment belongs to a pull request, but the pull request is not imported
481
+ log.Warn("Ignoring comment for non existent issue %d", comment.IssueIndex)
482
+ continue
483
}
484
485
if comment.Created.IsZero() {
0 commit comments