Don't add "How to use" when running from the command line - a small correction

This commit is contained in:
Ori Kotek 2023-07-06 17:53:52 +03:00
parent d04c0f490c
commit 4331610e01
No known key found for this signature in database
GPG key ID: 5AAFD0757D1EAC4C

View file

@ -92,10 +92,11 @@ class PRReviewer:
markdown_text = convert_to_markdown(data)
user = self.git_provider.get_user_id()
if not self.cli_mode:
markdown_text += "\n### How to use\n"
if user and '[bot]' not in user:
markdown_text += "\n### How to use\n"
if self.cli_mode:
pass
elif user and '[bot]' not in user:
markdown_text += f"> Tag me in a comment '@{user}' to ask for a new review after you update the PR.\n"
markdown_text += "> You can also tag me and ask any question, " \
f"for example '@{user} is the PR ready for merge?'"