Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit 466119d

Browse files
committed
Fix title and body of dry run PR
1 parent 77b5d92 commit 466119d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pack/build-aware-transform/support/dryRunBuildListener.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ export function dryRunBuildListener(opts: IssueCreationOptions): BuildListener {
3333
return;
3434
}
3535

36-
const description = bu.build.commit.message.replace(DryRunMessage, "").trim().split("\n")[0];
36+
const body = bu.build.commit.message.replace(DryRunMessage, "").trim();
37+
const description = body.split("\n")[0];
3738
switch (build.status) {
3839
case "started" :
3940
logger.info("Tracking dry run build on %j on branch %s,", bu.id, branch);
@@ -43,7 +44,6 @@ export function dryRunBuildListener(opts: IssueCreationOptions): BuildListener {
4344
case "passed":
4445
logger.info("Raising PR for successful dry run build on %j", bu.id);
4546
const title = description;
46-
const body = bu.build.commit.message;
4747
await bu.id.raisePullRequest(
4848
bu.credentials,
4949
title,

0 commit comments

Comments
 (0)