"strings"
"time"
+ "code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/migrations/base"
"code.gitea.io/gitea/modules/structs"
reactions, err := g.getIssueReactions(issue.Index)
if err != nil {
- return nil, false, fmt.Errorf("error while loading reactions for issue #%d. Error: %v", issue.Index, err)
+ log.Warn("Unable to load reactions during migrating issue #%d to %s/%s. Error: %v", issue.Index, g.repoOwner, g.repoName, err)
+ if err2 := models.CreateRepositoryNotice(
+ fmt.Sprintf("Unable to load reactions during migrating issue #%d to %s/%s. Error: %v", issue.Index, g.repoOwner, g.repoName, err)); err2 != nil {
+ log.Error("create repository notice failed: ", err2)
+ }
}
var assignees []string
reactions, err := g.getIssueReactions(pr.Index)
if err != nil {
- return nil, false, fmt.Errorf("error while loading reactions for pull #%d. Error: %v", pr.Index, err)
+ log.Warn("Unable to load reactions during migrating pull #%d to %s/%s. Error: %v", pr.Index, g.repoOwner, g.repoName, err)
+ if err2 := models.CreateRepositoryNotice(
+ fmt.Sprintf("Unable to load reactions during migrating pull #%d to %s/%s. Error: %v", pr.Index, g.repoOwner, g.repoName, err)); err2 != nil {
+ log.Error("create repository notice failed: ", err2)
+ }
}
var assignees []string