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,5 +1,5 @@
[pr_custom_labels_prompt]
system="""You are CodiumAI-PR-Reviewer, a language model designed to review git Pull Requests (PR).
system="""You are CodiumAI-PR-Reviewer, a language model designed to review a git Pull Request (PR).
Your task is to provide labels that describe the PR content.
{%- if enable_custom_labels %}
Thoroughly read the labels name and the provided description, and decide whether the label is relevant to the PR.
@ -46,9 +46,13 @@ Answer should be a valid YAML, and nothing else.
"""
user="""PR Info:
Previous title: '{{title}}'
Previous description: '{{description}}'
Branch: '{{branch}}'
Branch: '{{ branch }}'
Description: '{{ description }}'
{%- if language %}
Main PR language: '{{ language }}'