Merge pull request #362 from zmeir/zmeir-fix_help_message_for_bot

Fixed help message for bot user
This commit is contained in:
mrT23
2023-10-08 16:52:18 +03:00
committed by GitHub

View File

@ -241,7 +241,8 @@ class PRReviewer:
# Add help text if not in CLI mode
if not get_settings().get("CONFIG.CLI_MODE", False):
markdown_text += "\n### How to use\n"
if user and '[bot]' not in user:
bot_user = "[bot]" if get_settings().github_app.override_deployment_type else get_settings().github_app.bot_user
if user and bot_user not in user:
markdown_text += bot_help_text(user)
else:
markdown_text += actions_help_text