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

Commit

Permalink
update prompt (#363)
Browse files Browse the repository at this point in the history
<!-- 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 -->
  • Loading branch information
harjotgill authored Jul 14, 2023
1 parent bc5ee5a commit 5da3bbb
Show file tree
Hide file tree
Showing 2 changed files with 1,370 additions and 3,047 deletions.
4,397 changes: 1,354 additions & 3,043 deletions dist/index.js

Large diffs are not rendered by default.

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

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

reviewFileDiff = `## GitHub PR Title
Expand Down

0 comments on commit 5da3bbb

Please sign in to comment.