mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-04 04:40:38 +08:00
stable
This commit is contained in:
@ -18,11 +18,13 @@ You must use the following JSON schema to format your answer:
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "an informative and concise description of the PR"
|
"description": "an informative and concise description of the PR"
|
||||||
},
|
},
|
||||||
"PR Walkthrough": {
|
"PR Main Files Walkthrough": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "a walkthrough of the PR changes. Review file by file, in bullet points, and shortly describe the changes in each file. Format: -`filename`: description of changes\n..."
|
"description": "a walkthrough of the PR changes. Review main files, in bullet points, and shortly describe the changes in each file (up to 10 most important files). Format: -`filename`: description of changes\n..."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Don't repeat the prompt in the answer, and avoid outputting the 'type' and 'description' fields.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
user="""PR Info:
|
user="""PR Info:
|
||||||
|
@ -72,10 +72,10 @@ class PRDescription:
|
|||||||
# markdown_text += f"{value}\n\n"
|
# markdown_text += f"{value}\n\n"
|
||||||
for key, value in data.items():
|
for key, value in data.items():
|
||||||
markdown_text += f"{key}:\n"
|
markdown_text += f"{key}:\n"
|
||||||
if 'walkthrough' not in key.lower():
|
if 'walkthrough' in key.lower():
|
||||||
markdown_text += f"**{value}**\n"
|
markdown_text += f"{value}\n"
|
||||||
else:
|
else:
|
||||||
markdown_text += f"{value}\n\n___\n"
|
markdown_text += f"**{value}**\n\n___\n"
|
||||||
if settings.config.verbosity_level >= 2:
|
if settings.config.verbosity_level >= 2:
|
||||||
logging.info(f"markdown_text:\n{markdown_text}")
|
logging.info(f"markdown_text:\n{markdown_text}")
|
||||||
return markdown_text
|
return markdown_text
|
||||||
|
Reference in New Issue
Block a user