Content-Length: 269023 | pFad | http://github.com/go-gitea/gitea/commit/24a51059d7fffe75564f7dc2fffeba1f3789f55e

A1 Fix possible nil description of pull request when migrating from Code… · go-gitea/gitea@24a5105 · GitHub
Skip to content

Commit 24a5105

Browse files
authored
Fix possible nil description of pull request when migrating from CodeCommit (#34541)
Fix #34320
1 parent 9f10885 commit 24a5105

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

services/migrations/codecommit.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,11 +180,15 @@ func (c *CodeCommitDownloader) GetPullRequests(ctx context.Context, page, perPag
180180
continue
181181
}
182182
target := orig.PullRequestTargets[0]
183+
description := ""
184+
if orig.Description != nil {
185+
description = *orig.Description
186+
}
183187
pr := &base.PullRequest{
184188
Number: number,
185189
Title: *orig.Title,
186190
PosterName: c.getUsernameFromARN(*orig.AuthorArn),
187-
Content: *orig.Description,
191+
Content: description,
188192
State: "open",
189193
Created: *orig.CreationDate,
190194
Updated: *orig.LastActivityDate,

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/go-gitea/gitea/commit/24a51059d7fffe75564f7dc2fffeba1f3789f55e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy