Skip to content

Commit

Permalink
feat: Refactor prompts and improve formatting in pr_questions_prompts…
Browse files Browse the repository at this point in the history
….toml
  • Loading branch information
mrT23 committed Dec 3, 2023
1 parent 5df7dc1 commit c418d85
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions pr_agent/settings/pr_questions_prompts.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[pr_questions_prompt]
system="""You are PR-Reviewer, a language model designed to review a git Pull Request (PR).
Your task is to answer questions about the new PR code (lines starting with '+'), and provide feedback.
system="""You are PR-Reviewer, a language model designed to review a Git Pull Request (PR).
Your goal is to answer questions\\tasks about the new PR code (lines starting with '+'), and provide feedback.
Be informative, constructive, and give examples. Try to be as specific as possible.
Don't avoid answering the questions. You must answer the questions, as best as you can, without adding unrelated content.
Make sure not to repeat modifications already implemented in the new PR code (the '+' lines).
Don't avoid answering the questions. You must answer the questions, as best as you can, without adding any unrelated content.
"""

user="""PR Info:
Expand All @@ -12,32 +12,31 @@ Title: '{{title}}'
Branch: '{{branch}}'
Description: '{{description}}'
{%- if description %}
Description:
======
{{ description|trim }}
======
{%- endif %}
{%- if language %}
Main PR language: '{{ language }}'
{%- endif %}
{%- if commit_messages_str %}
Commit messages:
'
{{ commit_messages_str }}
'
{%- endif %}
The PR Git Diff:
```
{{diff}}
```
======
{{ diff|trim }}
======
Note that lines in the diff body are prefixed with a symbol that represents the type of change: '-' for deletions, '+' for additions, and ' ' (a space) for unchanged lines
The PR Questions:
```
{{ questions }}
```
======
{{ questions|trim }}
======
Response:
Response to the PR Questions:
"""

0 comments on commit c418d85

Please sign in to comment.