Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit bc2fe93

Browse files
committed
Append template if it exists.
If the was a single commit in the PR and also a PR template in the repository then append the template to the commit message for the initial commit description.
1 parent 6877282 commit bc2fe93

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/GitHub.App/ViewModels/PullRequestCreationViewModel.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ public PullRequestCreationViewModel(IRepositoryHost repositoryHost, ILocalReposi
166166

167167
if (!string.IsNullOrWhiteSpace(x.template))
168168
{
169-
prDescription = x.template;
169+
if (!string.IsNullOrEmpty(prDescription))
170+
prDescription += "\n\n";
171+
prDescription += x.template;
170172
}
171173

172174
PRTitle = prTitle;

0 commit comments

Comments
 (0)