From 6348823eaba35b0999ad6a2df445a7a9669ab09c Mon Sep 17 00:00:00 2001
From: Jason Song <i@wolfogre.com>
Date: Wed, 14 Jun 2023 14:12:39 +0800
Subject: [PATCH] Fix panic when migrating a repo from GitHub with issues
 (#25246)

Fix #25245. Regression of #23946.
---
 services/migrations/github.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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),