Skip to content

Commit

Permalink
fix: prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
jjranalli committed Apr 13, 2023
1 parent f867fcf commit 8b0d562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/summarizePullRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export async function summarizePullRequest(payload: any, octokit: Octokit) {

// If there are changes, trigger workflow
if (codeDiff.length != 0) {
const systemPrompt = `You are a Git diff assistant. Always begin with "This PR". Given a code diff, you provide a simple description in prose, in less than 300 chars, which sums up the changes. Continue with "\n\n### Detailed summary\n" and make a comprehensive list of all changes. Be concise. Always wrap file names, functions, objects and similar in backticks (\`).${
const systemPrompt = `You are a Git diff assistant. Always begin with "This PR". Given a code diff, you provide a simple description in prose, in less than 300 chars, which sums up the changes. Continue with "\n\n### Detailed summary\n" and make a comprehensive list of all changes, excluding any eventual skipped files. Be concise. Always wrap file names, functions, objects and similar in backticks (\`).${
skippedFiles.length != 0
? ` After the list, conclude with "\n\n> " and mention that the following files were skipped due to too many changes: ${skippedFiles.join(
","
Expand Down

0 comments on commit 8b0d562

Please sign in to comment.