]> source.dussan.org Git - gitea.git/commitdiff
Fix panic when migrating a repo from GitHub with issues (#25246)
authorJason Song <i@wolfogre.com>
Wed, 14 Jun 2023 06:12:39 +0000 (14:12 +0800)
committerGitHub <noreply@github.com>
Wed, 14 Jun 2023 06:12:39 +0000 (14:12 +0800)
Fix #25245. Regression of #23946.

services/migrations/github.go

index ed193cd746a64277e322fed358fc7a8a83c564a3..f27c1a34dafb4ef532fda0334a65072b4d3e8199 100644 (file)
@@ -487,7 +487,7 @@ func (g *GithubDownloaderV3) GetIssues(page, perPage int) ([]*base.Issue, bool,
                        Updated:      issue.GetUpdatedAt().Time,
                        Labels:       labels,
                        Reactions:    reactions,
-                       Closed:       &issue.ClosedAt.Time,
+                       Closed:       issue.ClosedAt.GetTime(),
                        IsLocked:     issue.GetLocked(),
                        Assignees:    assignees,
                        ForeignIndex: int64(*issue.Number),