This commit is contained in:
mrT23
2023-07-13 17:31:28 +03:00
parent dece20c984
commit f34cda126a
2 changed files with 7 additions and 5 deletions

View File

@ -18,11 +18,13 @@ You must use the following JSON schema to format your answer:
"type": "string",
"description": "an informative and concise description of the PR"
},
"PR Walkthrough": {
"PR Main Files Walkthrough": {
"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:

View File

@ -72,10 +72,10 @@ class PRDescription:
# markdown_text += f"{value}\n\n"
for key, value in data.items():
markdown_text += f"{key}:\n"
if 'walkthrough' not in key.lower():
markdown_text += f"**{value}**\n"
if 'walkthrough' in key.lower():
markdown_text += f"{value}\n"
else:
markdown_text += f"{value}\n\n___\n"
markdown_text += f"**{value}**\n\n___\n"
if settings.config.verbosity_level >= 2:
logging.info(f"markdown_text:\n{markdown_text}")
return markdown_text