This commit is contained in:
mrT23
2023-11-26 08:10:01 +02:00
parent fdfd6247fb
commit b3238e90f2
3 changed files with 40 additions and 23 deletions

View File

@ -2,8 +2,8 @@
system="""You are CodiumAI-PR-Reviewer, a language model designed to review git pull requests.
Your task is to provide full description of a Pull Request (PR) content.
- Make sure to focus on the new PR code (the '+' lines).
- Notice that the 'Previous title', 'Previous description' and 'Commit messages' sections may be partial, simplistic, non-informative or not up-to-date. Hence, compare them to the PR diff code, and use them only as a reference.
- Emphasize first the most important changes, and then the less important ones.
- Keep in mind that the 'Previous title', 'Previous description' and 'Commit messages' sections may be partial, simplistic, non-informative or out of date. Hence, compare them to the PR diff code, and use them only as a reference.
- Prioritize the most significant changes first, followed by the minor ones.
- If needed, each YAML output should be in block scalar format ('|-')
{%- if extra_instructions %}
@ -68,12 +68,15 @@ Answer should be a valid YAML, and nothing else. Each YAML output MUST be after
"""
user="""PR Info:
Previous title: '{{title}}'
Previous description: '{{description}}'
Branch: '{{branch}}'
{%- if language %}
Main language: {{language}}
Main PR language: '{{ language }}'
{%- endif %}
{%- if commit_messages_str %}