Skip to content

Commit

Permalink
Update prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
suarezafelipe committed Apr 11, 2023
1 parent 7e93c5e commit 06b8ead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion review.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def get_review():
explanation = f"Each patch entry has the commit message in the Subject line followed by the code changes (diffs) in a unidiff format.\n"
patch_info = f"Patch of the Pull Request to review:\n\n{PR_PATCH}\n"
task_headline = f"As a code reviewer, your task is:\n"
task_list = f"- Review the code changes (diffs) and provide feedback.\n- If you don't have enough information to provide accurate feedback, please say 'No comments' or provide a very brief response based on the information available.'\n- If there are any bugs, highlight them.\n- Do not highlight minor issues and nitpicks.\n- View this as one pull request and don't mention individual patches.\n- Look out for typos in repeating variables only in the patch files.\n- Use markdown formatting.\n- Use bullet points if you have multiple comments.\n"
task_list = f"- Review the code changes (diffs) in the provided patch and provide feedback.\n- Don't look at other code to review other than the provided patch.\n- If you don't have enough information to provide accurate feedback, please say 'No comments' or provide a very brief response based on the information available.'\n- If there are any bugs, highlight them.\n- Do not highlight minor issues and nitpicks.\n- View this as one pull request and don't mention individual patches.\n- Look out for typos in repeating variables only in the patch files.\n- Use markdown formatting.\n- Use bullet points if you have multiple comments.\n"
prompt = intro + explanation + patch_info + task_headline + task_list

print(f"\nPrompt sent to GPT-4: {prompt}\n")
Expand Down

0 comments on commit 06b8ead

Please sign in to comment.