diff --git a/pr_agent/settings/pr_code_suggestions_prompts.toml b/pr_agent/settings/pr_code_suggestions_prompts.toml index 42ec7441..455d6612 100644 --- a/pr_agent/settings/pr_code_suggestions_prompts.toml +++ b/pr_agent/settings/pr_code_suggestions_prompts.toml @@ -120,7 +120,7 @@ Description: '{{description}}' {%- if language %} -Main language: {{language}} +Main PR language: '{{ language }}' {%- endif %} diff --git a/pr_agent/settings/pr_custom_labels.toml b/pr_agent/settings/pr_custom_labels.toml index 976258dc..dada1518 100644 --- a/pr_agent/settings/pr_custom_labels.toml +++ b/pr_agent/settings/pr_custom_labels.toml @@ -51,12 +51,14 @@ Previous description: '{{description}}' Branch: '{{branch}}' {%- if language %} -Main language: {{language}} +Main PR language: '{{ language }}' {%- endif %} {%- if commit_messages_str %} Commit messages: -{{commit_messages_str}} +' +{{ commit_messages_str }} +' {%- endif %} diff --git a/pr_agent/settings/pr_description_prompts.toml b/pr_agent/settings/pr_description_prompts.toml index f1633e46..931f92c3 100644 --- a/pr_agent/settings/pr_description_prompts.toml +++ b/pr_agent/settings/pr_description_prompts.toml @@ -81,7 +81,9 @@ Main PR language: '{{ language }}' {%- if commit_messages_str %} Commit messages: -{{commit_messages_str}} +' +{{ commit_messages_str }} +' {%- endif %} diff --git a/pr_agent/settings/pr_information_from_user_prompts.toml b/pr_agent/settings/pr_information_from_user_prompts.toml index 8d628f7a..7b1b6fdb 100644 --- a/pr_agent/settings/pr_information_from_user_prompts.toml +++ b/pr_agent/settings/pr_information_from_user_prompts.toml @@ -16,15 +16,21 @@ Questions to better understand the PR: user="""PR Info: Title: '{{title}}' + Branch: '{{branch}}' + Description: '{{description}}' + {%- if language %} -Main language: {{language}} + +Main PR language: '{{ language }}' {%- endif %} {%- if commit_messages_str %} Commit messages: +' {{commit_messages_str}} +' {%- endif %} diff --git a/pr_agent/settings/pr_questions_prompts.toml b/pr_agent/settings/pr_questions_prompts.toml index e306684d..dc7a313d 100644 --- a/pr_agent/settings/pr_questions_prompts.toml +++ b/pr_agent/settings/pr_questions_prompts.toml @@ -7,16 +7,23 @@ Make sure not to repeat modifications already implemented in the new PR code (th """ user="""PR Info: + Title: '{{title}}' + Branch: '{{branch}}' + Description: '{{description}}' + {%- if language %} -Main language: {{language}} + +Main PR language: '{{ language }}' {%- endif %} {%- if commit_messages_str %} Commit messages: -{{commit_messages_str}} +' +{{ commit_messages_str }} +' {%- endif %} diff --git a/pr_agent/settings/pr_reviewer_prompts.toml b/pr_agent/settings/pr_reviewer_prompts.toml index b75c296a..cece22f9 100644 --- a/pr_agent/settings/pr_reviewer_prompts.toml +++ b/pr_agent/settings/pr_reviewer_prompts.toml @@ -179,16 +179,23 @@ Don't repeat the prompt in the answer, and avoid outputting the 'type' and 'desc """ user="""PR Info: + Title: '{{title}}' + Branch: '{{branch}}' + Description: '{{description}}' + {%- if language %} -Main language: {{language}} + +Main PR language: '{{ language }}' {%- endif %} {%- if commit_messages_str %} Commit messages: +' {{commit_messages_str}} +' {%- endif %} {%- if question_str %} diff --git a/pr_agent/settings/pr_update_changelog_prompts.toml b/pr_agent/settings/pr_update_changelog_prompts.toml index e9133e34..9d00f251 100644 --- a/pr_agent/settings/pr_update_changelog_prompts.toml +++ b/pr_agent/settings/pr_update_changelog_prompts.toml @@ -15,16 +15,23 @@ Extra instructions from the user: """ user="""PR Info: + Title: '{{title}}' + Branch: '{{branch}}' + Description: '{{description}}' + {%- if language %} -Main language: {{language}} + +Main PR language: '{{ language }}' {%- endif %} {%- if commit_messages_str %} Commit messages: -{{commit_messages_str}} +' +{{ commit_messages_str }} +' {%- endif %}