From 8fa9d9dcc9a29aaece7397cf24c8796f449ce3c1 Mon Sep 17 00:00:00 2001 From: Giteabot Date: Wed, 14 Jun 2023 03:08:08 -0400 Subject: [PATCH] Fix panic when migrating a repo from GitHub with issues (#25246) (#25247) Backport #25246 by @wolfogre Fix #25245. Regression of #23946. Co-authored-by: Jason Song --- 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 cc8bb53407..47ffb76c86 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),