From 65a52e6161fe8ae52423501da831b1eb727041b1 Mon Sep 17 00:00:00 2001 From: Jason Song 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 cc8bb534078f4..47ffb76c864d0 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),