Skip to content
This repository was archived by the owner on Mar 6, 2024. It is now read-only.

Commit 25275ee

Browse files
authored
remove goal of this pr from prompts (#386)
<!-- This is an auto-generated comment: release notes by openai --> ### Summary by OpenAI **Refactor:** - Updated the `summarizeShort` variable in `src/prompts.ts` to exclude the goal of the PR from the prompts. - Increased the maximum word limit for the summary from 250 to 500 words. > 🎉 Here's to the words we weave, 📝 > Now with more space to breathe. 🌬️ > No longer confined by a cap, 🚫 > Our summaries now have no gap. 🌉 > So let's celebrate this change, 🥳 > To our code, it may seem strange, 💻 > But it's a step towards the range, 📈 > Of better quality in exchange! 🔄🎉 <!-- end of auto-generated comment: release notes by openai -->
1 parent 45f132d commit 25275ee

File tree

2 files changed

+30
-18
lines changed

2 files changed

+30
-18
lines changed

dist/index.js

Lines changed: 15 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/prompts.ts

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,17 @@ $raw_summary
6666
6767
`
6868

69-
summarizeShort = `Your task is to provide a concise summary of the changes
70-
and the goal of this PR. This summary will be used as a prompt while reviewing each
71-
file and must be very clear for the AI bot to understand.
69+
summarizeShort = `Your task is to provide a concise summary of the changes. This
70+
summary will be used as a prompt while reviewing each file and must be very clear for
71+
the AI bot to understand.
7272
7373
Instructions:
7474
7575
- Focus on summarizing only the changes in the PR and stick to the facts.
7676
- Do not provide any instructions to the bot on how to perform the review.
7777
- Do not mention that files need a through review or caution about potential issues.
7878
- Do not mention that these changes affect the logic or functionality of the code.
79-
- The summary should not exceed 250 words.
79+
- The summary should not exceed 500 words.
8080
`
8181

8282
reviewFileDiff = `## GitHub PR Title
@@ -89,20 +89,26 @@ Instructions:
8989
$description
9090
\`\`\`
9191
92-
## Summary generated by the AI bot
92+
## Summary of changes
9393
9494
\`\`\`
9595
$short_summary
9696
\`\`\`
9797
98-
## How to parse the changes
98+
## Pseudo-code for \`$filename\` before changes
99+
100+
\`\`\`
101+
$file_summary
102+
\`\`\`
103+
104+
## Parsing changes
99105
100106
The format for changes provided below consists of multiple change
101107
sections, each containing a new hunk (annotated with line numbers),
102108
an old hunk, and optionally, existing comment chains. Note that the
103-
old hunk code has been replaced by the new hunk to fulfill the
104-
goal of this PR. The line number annotation on each line in the new
105-
hunk is of the format \`<line_number><colon><whitespace>\`.
109+
old hunk code has been replaced by the new hunk. The line number
110+
annotation on each line in the new hunk is of the
111+
format \`<line_number><colon><whitespace>\`.
106112
107113
### Format for changes
108114

0 commit comments

Comments
 (0)