mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-06 05:40:38 +08:00
feat: Update PR prompts in toml files to enhance readability and consistency
This commit is contained in:
@ -120,7 +120,7 @@ Description: '{{description}}'
|
|||||||
|
|
||||||
{%- if language %}
|
{%- if language %}
|
||||||
|
|
||||||
Main language: {{language}}
|
Main PR language: '{{ language }}'
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
|
||||||
|
@ -51,12 +51,14 @@ Previous description: '{{description}}'
|
|||||||
Branch: '{{branch}}'
|
Branch: '{{branch}}'
|
||||||
{%- if language %}
|
{%- if language %}
|
||||||
|
|
||||||
Main language: {{language}}
|
Main PR language: '{{ language }}'
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if commit_messages_str %}
|
{%- if commit_messages_str %}
|
||||||
|
|
||||||
Commit messages:
|
Commit messages:
|
||||||
{{commit_messages_str}}
|
'
|
||||||
|
{{ commit_messages_str }}
|
||||||
|
'
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
|
||||||
|
@ -81,7 +81,9 @@ Main PR language: '{{ language }}'
|
|||||||
{%- if commit_messages_str %}
|
{%- if commit_messages_str %}
|
||||||
|
|
||||||
Commit messages:
|
Commit messages:
|
||||||
{{commit_messages_str}}
|
'
|
||||||
|
{{ commit_messages_str }}
|
||||||
|
'
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
|
||||||
|
@ -16,15 +16,21 @@ Questions to better understand the PR:
|
|||||||
|
|
||||||
user="""PR Info:
|
user="""PR Info:
|
||||||
Title: '{{title}}'
|
Title: '{{title}}'
|
||||||
|
|
||||||
Branch: '{{branch}}'
|
Branch: '{{branch}}'
|
||||||
|
|
||||||
Description: '{{description}}'
|
Description: '{{description}}'
|
||||||
|
|
||||||
{%- if language %}
|
{%- if language %}
|
||||||
Main language: {{language}}
|
|
||||||
|
Main PR language: '{{ language }}'
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if commit_messages_str %}
|
{%- if commit_messages_str %}
|
||||||
|
|
||||||
Commit messages:
|
Commit messages:
|
||||||
|
'
|
||||||
{{commit_messages_str}}
|
{{commit_messages_str}}
|
||||||
|
'
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
|
||||||
|
@ -7,16 +7,23 @@ Make sure not to repeat modifications already implemented in the new PR code (th
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
user="""PR Info:
|
user="""PR Info:
|
||||||
|
|
||||||
Title: '{{title}}'
|
Title: '{{title}}'
|
||||||
|
|
||||||
Branch: '{{branch}}'
|
Branch: '{{branch}}'
|
||||||
|
|
||||||
Description: '{{description}}'
|
Description: '{{description}}'
|
||||||
|
|
||||||
{%- if language %}
|
{%- if language %}
|
||||||
Main language: {{language}}
|
|
||||||
|
Main PR language: '{{ language }}'
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if commit_messages_str %}
|
{%- if commit_messages_str %}
|
||||||
|
|
||||||
Commit messages:
|
Commit messages:
|
||||||
{{commit_messages_str}}
|
'
|
||||||
|
{{ commit_messages_str }}
|
||||||
|
'
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
|
||||||
|
@ -179,16 +179,23 @@ Don't repeat the prompt in the answer, and avoid outputting the 'type' and 'desc
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
user="""PR Info:
|
user="""PR Info:
|
||||||
|
|
||||||
Title: '{{title}}'
|
Title: '{{title}}'
|
||||||
|
|
||||||
Branch: '{{branch}}'
|
Branch: '{{branch}}'
|
||||||
|
|
||||||
Description: '{{description}}'
|
Description: '{{description}}'
|
||||||
|
|
||||||
{%- if language %}
|
{%- if language %}
|
||||||
Main language: {{language}}
|
|
||||||
|
Main PR language: '{{ language }}'
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if commit_messages_str %}
|
{%- if commit_messages_str %}
|
||||||
|
|
||||||
Commit messages:
|
Commit messages:
|
||||||
|
'
|
||||||
{{commit_messages_str}}
|
{{commit_messages_str}}
|
||||||
|
'
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
{%- if question_str %}
|
{%- if question_str %}
|
||||||
|
@ -15,16 +15,23 @@ Extra instructions from the user:
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
user="""PR Info:
|
user="""PR Info:
|
||||||
|
|
||||||
Title: '{{title}}'
|
Title: '{{title}}'
|
||||||
|
|
||||||
Branch: '{{branch}}'
|
Branch: '{{branch}}'
|
||||||
|
|
||||||
Description: '{{description}}'
|
Description: '{{description}}'
|
||||||
|
|
||||||
{%- if language %}
|
{%- if language %}
|
||||||
Main language: {{language}}
|
|
||||||
|
Main PR language: '{{ language }}'
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if commit_messages_str %}
|
{%- if commit_messages_str %}
|
||||||
|
|
||||||
Commit messages:
|
Commit messages:
|
||||||
{{commit_messages_str}}
|
'
|
||||||
|
{{ commit_messages_str }}
|
||||||
|
'
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user