Update README.md and add gfm markdown support check in pr_help_message.py

This commit is contained in:
mrT23
2024-02-28 09:20:14 +02:00
parent 07f507c442
commit 047c370683
2 changed files with 7 additions and 2 deletions

View File

@ -9,6 +9,11 @@ class PRHelpMessage:
async def run(self):
try:
if not self.git_provider.is_supported("gfm_markdown"):
self.git_provider.publish_comment(
"The `Help` tool requires gfm markdown, which is not supported by your code platform.")
return
get_logger().info('Getting PR Help Message...')
relevant_configs = {'pr_help': dict(get_settings().pr_help),
'config': dict(get_settings().config)}