mirror of
https://github.com/go-gitea/gitea
synced 2025-07-06 18:47:19 +00:00
Backport #34645 by @lunny Fix #34627 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
@ -210,6 +210,10 @@ func (c *CodeCommitDownloader) GetPullRequests(ctx context.Context, page, perPag
|
|||||||
pr.State = "closed"
|
pr.State = "closed"
|
||||||
pr.Closed = orig.LastActivityDate
|
pr.Closed = orig.LastActivityDate
|
||||||
}
|
}
|
||||||
|
if pr.Merged {
|
||||||
|
pr.MergeCommitSHA = *target.MergeMetadata.MergeCommitId
|
||||||
|
pr.MergedTime = orig.LastActivityDate
|
||||||
|
}
|
||||||
|
|
||||||
_ = CheckAndEnsureSafePR(pr, c.baseURL, c)
|
_ = CheckAndEnsureSafePR(pr, c.baseURL, c)
|
||||||
prs = append(prs, pr)
|
prs = append(prs, pr)
|
||||||
|
Reference in New Issue
Block a user