From fcd99fcee757084fb1cab85965d6f22eb5187305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Svantesson?= Date: Wed, 28 Dec 2022 15:46:28 +0100 Subject: [PATCH] feat: add changelog to PR body MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit add another newline so the text before isn't interpreted as a headline Signed-off-by: MÃ¥rten Svantesson --- pkg/environments/pr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/environments/pr.go b/pkg/environments/pr.go index c0a3c0f..eb25d8a 100644 --- a/pkg/environments/pr.go +++ b/pkg/environments/pr.go @@ -116,7 +116,7 @@ func (o *EnvironmentPullRequestOptions) CreatePullRequest(scmClient *scm.Client, commitTitle := strings.TrimSpace(o.CommitTitle) commitBody := o.CommitMessage if existingChangelog || o.CommitChangelog != "" { - commitBody += "\n" + o.ChangelogSeparator + changelogPrefix + "\n" + o.CommitChangelog + commitBody += "\n\n" + o.ChangelogSeparator + changelogPrefix + "\n" + o.CommitChangelog } commitMessage := fmt.Sprintf("%s\n\n%s", commitTitle, commitBody) _, err = gitclient.AddAndCommitFiles(gitter, dir, strings.TrimSpace(commitMessage))