feiskyer / ChatGPT-Reviewer

Automated pull requests reviewing and issues triaging with ChatGPT.
Apache License 2.0
59 stars 20 forks source link

Fine tune the OpenAI prompts #5

Closed feiskyer closed 1 year ago

feiskyer commented 1 year ago

Fine tune the OpenAI prompts, and enable posting per file by default.

github-actions[bot] commented 1 year ago

@feiskyer Thanks for your contributions!

This pull request looks to be making some good changes to the OpenAI prompts. The title and body provide a clear description of the changes being made, and the changes themselves are well-structured and easy to read.

However, there are a few issues that should be addressed. First, the default value for the review_per_file argument is not clear. It should be changed to a boolean value (true or false) to make it easier to understand. Additionally, the default value for the comment_per_file argument should be changed to true, since this is the desired behavior.

In addition, the prompts for the PR review and file review should be more concise and clear. The prompts should avoid providing unnecessary explanations or summaries that may delay the review process. The prompts should also provide feedback in a concise and clear manner to help expedite the review process. Finally, there is no need for thanking in the review message.

Overall, this pull request looks to be making some good changes to the OpenAI prompts. With a few minor tweaks, it should be ready for review.