mirror of
https://github.com/go-gitea/gitea.git
synced 2025-06-18 20:48:11 +00:00
Fix possible nil description of pull request when migrating from CodeCommit (#34541)
Fix #34320
This commit is contained in:
parent
9f10885b21
commit
24a51059d7
@ -180,11 +180,15 @@ func (c *CodeCommitDownloader) GetPullRequests(ctx context.Context, page, perPag
|
||||
continue
|
||||
}
|
||||
target := orig.PullRequestTargets[0]
|
||||
description := ""
|
||||
if orig.Description != nil {
|
||||
description = *orig.Description
|
||||
}
|
||||
pr := &base.PullRequest{
|
||||
Number: number,
|
||||
Title: *orig.Title,
|
||||
PosterName: c.getUsernameFromARN(*orig.AuthorArn),
|
||||
Content: *orig.Description,
|
||||
Content: description,
|
||||
State: "open",
|
||||
Created: *orig.CreationDate,
|
||||
Updated: *orig.LastActivityDate,
|
||||
|
Loading…
Reference in New Issue
Block a user