mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 10:48:37 +00:00
Backport #34541 by @lunny Fix #34320 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
@@ -180,11 +180,15 @@ func (c *CodeCommitDownloader) GetPullRequests(ctx context.Context, page, perPag
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
target := orig.PullRequestTargets[0]
|
target := orig.PullRequestTargets[0]
|
||||||
|
description := ""
|
||||||
|
if orig.Description != nil {
|
||||||
|
description = *orig.Description
|
||||||
|
}
|
||||||
pr := &base.PullRequest{
|
pr := &base.PullRequest{
|
||||||
Number: number,
|
Number: number,
|
||||||
Title: *orig.Title,
|
Title: *orig.Title,
|
||||||
PosterName: c.getUsernameFromARN(*orig.AuthorArn),
|
PosterName: c.getUsernameFromARN(*orig.AuthorArn),
|
||||||
Content: *orig.Description,
|
Content: description,
|
||||||
State: "open",
|
State: "open",
|
||||||
Created: *orig.CreationDate,
|
Created: *orig.CreationDate,
|
||||||
Updated: *orig.LastActivityDate,
|
Updated: *orig.LastActivityDate,
|
||||||
|
Reference in New Issue
Block a user