Skip to content

Commit 24e0426

Browse files
committed
append original body of PR
Signed-off-by: Anas Nashif <anas.nashif@intel.com>
1 parent 9818fca commit 24e0426

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/backport.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,12 +295,17 @@ const backport = async ({
295295
const createdPullRequestBaseBranchToNumber: { [base: string]: number } = {};
296296

297297
for (const base of baseBranches) {
298-
const body = getBody({
298+
const templatedBody = getBody({
299299
base,
300300
body: originalBody ?? "",
301301
mergeCommitSha: commitToBackport,
302302
number,
303303
});
304+
const body = originalBody
305+
? `${templatedBody}\n\n---\n\n### Original PR body (#${String(
306+
number,
307+
)})\n\n${originalBody}`
308+
: templatedBody;
304309
const head = getHead({ base, number });
305310
const labels = getLabels({
306311
base,

0 commit comments

Comments
 (0)