Skip to content

Commit

Permalink
feat: add changelog to PR body
Browse files Browse the repository at this point in the history
add another newline so the text before isn't interpreted as a headline

Signed-off-by: Mårten Svantesson <Marten.Svantesson@ticket.se>
  • Loading branch information
msvticket committed Dec 28, 2022
1 parent 6fe2ff2 commit fcd99fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/environments/pr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit fcd99fc

Please sign in to comment.