pr-agent/pr_agent/servers/help.py

16 lines
972 B
Python
Raw Normal View History

2023-07-19 17:57:14 +00:00
commands_text = "> **/review [-i]**: Request a review of your Pull Request. For an incremental review, which only " \
2023-07-19 14:27:12 +00:00
"considers changes since the last review, include the '-i' option.\n" \
2023-07-30 08:43:44 +00:00
"> **/describe**: Modify the PR title and description based on the contents of the PR.\n" \
2023-07-30 09:04:57 +00:00
"> **/improve**: Suggest improvements to the code in the PR. \n" \
2023-07-30 08:43:44 +00:00
"> **/ask \\<QUESTION\\>**: Pose a question about the PR.\n\n" \
"To edit any configuration parameter from 'configuration.toml', just add -config_path=<value>. " \
2023-07-30 09:04:57 +00:00
"For example: '/review --pr_reviewer.extra_instructions=\"focus on the file: ...\"'" \
2023-07-16 12:00:13 +00:00
def bot_help_text(user: str):
return f"> Tag me in a comment '@{user}' and add one of the following commands:\n" + commands_text
2023-07-16 14:41:23 +00:00
actions_help_text = "> To invoke the PR-Agent, add a comment using one of the following commands:\n" + \
2023-07-16 12:00:13 +00:00
commands_text