Fix get_user_description

The headers changed from "PR Type"/"PR Description"/etc to "Type"/"Description"/etc
This commit is contained in:
zmeir
2024-01-03 09:56:23 +02:00
parent c31ce3de35
commit 560d30dbb1
2 changed files with 8 additions and 4 deletions

View File

@ -297,7 +297,7 @@ class PRDescription:
value = self.file_label_dict
key_publish = "PR changes walkthrough"
else:
key_publish = key.rstrip(':').replace("_", " ").capitalize()
key_publish = key.rstrip(':').replace("_", " ").title()
pr_body += f"## {key_publish}\n"
if 'walkthrough' in key.lower():
if self.git_provider.is_supported("gfm_markdown"):