From 9b89b8c23e2d23aff954288aaf5c058b86bf47c7 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Mon, 26 May 2025 18:35:57 -0700 Subject: [PATCH] Fix possible blank description of pull request when mirating from code commit --- services/migrations/codecommit.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/services/migrations/codecommit.go b/services/migrations/codecommit.go index 4b2634ef8acd0..8b79edc4e5776 100644 --- a/services/migrations/codecommit.go +++ b/services/migrations/codecommit.go @@ -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,