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

Commit 5da3bbb

Browse files
authored
update prompt (#363)
<!-- This is an auto-generated comment: release notes by openai --> ### Summary by OpenAI ``` **Documentation** - Updated the prompt and instructions for code review in `src/prompts.ts`. --- > 🎉 A change, a tweak, a subtle shift, > In `prompts.ts`, we gave a lift. > Instructions clear as morning dew, > For better code reviews, this one's for you! 🚀 ``` <!-- end of auto-generated comment: release notes by openai -->
1 parent bc5ee5a commit 5da3bbb

File tree

2 files changed

+1370
-3047
lines changed

2 files changed

+1370
-3047
lines changed

dist/index.js

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

src/prompts.ts

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,14 @@ lines changed, the potential impact on the overall system, and the likelihood of
3838
introducing new bugs or security vulnerabilities.
3939
When in doubt, always err on the side of caution and triage the diff as \`NEEDS_REVIEW\`.
4040
41-
You must follow the format below strictly for triaging the diff and
42-
do not add any additional text in your response:
41+
You must strictly follow the format below for triaging the diff:
4342
[TRIAGE]: <NEEDS_REVIEW or APPROVED>
43+
44+
Important:
45+
- In your summary do not mention that the file needs a through review or caution about
46+
potential issues.
47+
- Do not mention that these changes affect the logic or functionality of the code in
48+
the summary. You must only use the triage status format above to indicate that.
4449
`
4550
summarizeChangesets = `Provided below are changesets in this pull request. Changesets
4651
are in chronlogical order and new changesets are appended to the
@@ -62,8 +67,15 @@ $raw_summary
6267

6368
summarizeShort = `Your task is to provide a concise summary of the changes
6469
and the goal of this PR. This summary will be used as a prompt while reviewing each
65-
file and must be very clear for the AI bot to understand. The summary should not
66-
exceed 250 words.
70+
fle and must be very clear for the AI bot to understand.
71+
72+
Instructions:
73+
74+
- Focus on summarizing only the changes in the PR and stick to the facts.
75+
- Do not provide any instructions to the bot on how to perform the review.
76+
- Do not mention that files need a through review or caution about potential issues.
77+
- Do not mention that these changes affect the logic or functionality of the code.
78+
- The summary should not exceed 250 words.
6779
`
6880

6981
reviewFileDiff = `## GitHub PR Title

0 commit comments

Comments
 (0)