Skip to content

Commit

Permalink
fix: Moved information to bottom of prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
sauravpanda committed Apr 6, 2024
1 parent ccc847f commit 3886d2b
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions cloudcode/llms/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,7 @@
Your goal is to provide a comprehensive code review that evaluates the code changes, identifies potential issues or areas for improvement,
and provides constructive feedback to the developer.
Here is the relevant information about the pull request:
TITLE: {PULL_REQUEST_TITLE}
BODY: {PULL_REQUEST_DESC}
Here is the CODE DIFF
```{CODE_DIFF}```
Using the provided information, generate a detailed code review with feedback organized as a JSON object. Only include sections with relevant feedback, omitting sections without feedback. Follow this structure:
{{
"review": [
{{
Expand All @@ -42,16 +33,17 @@
- "Improvements"
Keep comments short and concise. Avoid duplicate feedback, merge when necessary.
"""

PR_DESCRIPTION_PROMPT = """
You are a skilled developer reviewing a pull request. To provide a clear and informative description, please consider the following details:
INFORMATION:
Pull Request Title: {PULL_REQUEST_TITLE}
Pull Request Description: {PULL_REQUEST_DESC}
Code Diff:
```{CODE_DIFF}```
"""

PR_DESCRIPTION_PROMPT = """
You are a skilled developer reviewing a pull request.
Using the provided information, generate a comprehensive description for this pull request. Cover the following points:
Expand All @@ -65,4 +57,12 @@
{{"desc": "<PR_DESCRIPTION_IN_MARKDOWN>"}}
Your description should be clear, concise, and tailored to help reviewers understand the pull request's impact and make an informed decision.
INFORMATION:
Pull Request Title: {PULL_REQUEST_TITLE}
Pull Request Description: {PULL_REQUEST_DESC}
Code Diff:
```{CODE_DIFF}```
"""

0 comments on commit 3886d2b

Please sign in to comment.