0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-07-18 21:42:56 +02:00

Fix missed merge commit sha and time when migrating from codecommit (#34645)

Fix #34627
This commit is contained in:
Lunny Xiao 2025-06-09 00:16:23 +08:00 committed by GitHub
parent 1e0758a9f1
commit a9a705f4db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -210,6 +210,10 @@ func (c *CodeCommitDownloader) GetPullRequests(ctx context.Context, page, perPag
pr.State = "closed"
pr.Closed = orig.LastActivityDate
}
if pr.Merged {
pr.MergeCommitSHA = *target.MergeMetadata.MergeCommitId
pr.MergedTime = orig.LastActivityDate
}
_ = CheckAndEnsureSafePR(pr, c.baseURL, c)
prs = append(prs, pr)