feat: Enhance readability in toml files and add verbosity level logging in pr_generate_labels.py

This commit is contained in:
mrT23
2023-11-26 08:42:04 +02:00
parent 9465b7b577
commit 8db2e3b2a0
4 changed files with 20 additions and 6 deletions

View File

@ -1,6 +1,6 @@
[pr_description_prompt]
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.
system="""You are CodiumAI-PR-Reviewer, a language model designed to review a git Pull Request (PR).
Your task is to provide full description of a Pr content.
- Make sure to focus on the new PR code (the '+' lines).
- 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.
@ -71,7 +71,10 @@ user="""PR Info:
Previous title: '{{title}}'
Previous description: '{{description}}'
{%- if description %}
Previous description: '{{ description }}'
{%- endif %}
Branch: '{{branch}}'
{%- if language %}
@ -91,6 +94,8 @@ The PR Git Diff:
```
{{diff}}
```
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.
Response (should be a valid YAML, and nothing else):