Match styling of both /describe modes

This commit is contained in:
zmeir
2023-07-27 17:31:31 +03:00
parent a50e137bba
commit c6d0bacc08

View File

@ -160,11 +160,11 @@ class PRDescription:
# Iterate over the remaining dictionary items and append the key and value to 'pr_body' in a markdown format, # Iterate over the remaining dictionary items and append the key and value to 'pr_body' in a markdown format,
# except for the items containing the word 'walkthrough' # except for the items containing the word 'walkthrough'
for key, value in data.items(): for key, value in data.items():
pr_body += f"{key}:\n" pr_body += f"## {key}:\n"
if 'walkthrough' in key.lower(): if 'walkthrough' in key.lower():
pr_body += f"{value}\n" pr_body += f"{value}\n"
else: else:
pr_body += f"**{value}**\n\n___\n" pr_body += f"{value}\n\n___\n"
if settings.config.verbosity_level >= 2: if settings.config.verbosity_level >= 2:
logging.info(f"title:\n{title}\n{pr_body}") logging.info(f"title:\n{title}\n{pr_body}")