Skip to content

Commit cc60e38

Browse files
committed
Fix prDetailsContent
1 parent f0021fc commit cc60e38

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/review/reviewer.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,7 @@ export const reviewDiff = async (
2525
const ampConfig = config.amp;
2626

2727
// Format PR context for prompt
28-
const prDetailsContent = `
29-
Repository: ${prContext.repository_full_name}\n
30-
PR Number: ${prContext.pr_number}\n
31-
Commit SHA: ${prContext.commit_sha}\n
32-
PR URL: ${prContext.pr_url}\n
33-
`;
28+
const prDetailsContent = `Repository: ${prContext.repository_full_name}\nPR Number: ${prContext.pr_number}\nCommit SHA: ${prContext.commit_sha}\nPR URL: ${prContext.pr_url}`;
3429

3530
const promptContent = ampConfig.prompt_template
3631
.replace(/__PR_DETAILS_CONTENT__/g, prDetailsContent)

0 commit comments

Comments
 (0)