summaryrefslogtreecommitdiffstats
path: root/services/migrations
diff options
context:
space:
mode:
authorJason Song <i@wolfogre.com>2023-06-14 14:12:39 +0800
committerGitHub <noreply@github.com>2023-06-14 14:12:39 +0800
commit6348823eaba35b0999ad6a2df445a7a9669ab09c (patch)
tree65b162e0ff3ffe78cd00c4e55097cf09b7845483 /services/migrations
parent020ab3d4c8fc363b919a1e8a652551d8be6d2fe8 (diff)
downloadgitea-6348823eaba35b0999ad6a2df445a7a9669ab09c.tar.gz
gitea-6348823eaba35b0999ad6a2df445a7a9669ab09c.zip
Fix panic when migrating a repo from GitHub with issues (#25246)
Fix #25245. Regression of #23946.
Diffstat (limited to 'services/migrations')
-rw-r--r--services/migrations/github.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/migrations/github.go b/services/migrations/github.go
index ed193cd746..f27c1a34da 100644
--- a/services/migrations/github.go
+++ b/services/migrations/github.go
@@ -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),