Files
pr-agent/pr_agent/servers/help.py

20 lines
1.5 KiB
Python
Raw Normal View History

2023-11-19 11:02:11 +02:00
commands_text = "> **/review**: Request a review of your Pull Request.\n" \
"> **/describe**: Update the PR title and description based on the contents of the PR.\n" \
2023-11-19 11:11:11 +02:00
"> **/improve [--extended]**: Suggest code improvements. Extended mode provides a higher quality feedback.\n" \
2023-11-19 11:02:11 +02:00
"> **/ask \\<QUESTION\\>**: Ask a question about the PR.\n" \
"> **/update_changelog**: Update the changelog based on the PR's contents.\n" \
"> **/add_docs**: Generate docstring for new components introduced in the PR.\n" \
"> **/generate_labels**: Generate labels for the PR based on the PR's contents.\n" \
"> see the [tools guide](https://github.com/Codium-ai/pr-agent/blob/main/docs/TOOLS_GUIDE.md) for more details.\n\n" \
">To edit any configuration parameter from the [configuration.toml](https://github.com/Codium-ai/pr-agent/blob/main/pr_agent/settings/configuration.toml), add --config_path=new_value.\n" \
">For example: /review --pr_reviewer.extra_instructions=\"focus on the file: ...\" \n" \
2023-11-19 11:02:11 +02:00
">To list the possible configuration parameters, add a **/config** comment.\n" \
2023-07-16 15:00:13 +03: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 17:41:23 +03:00
actions_help_text = "> To invoke the PR-Agent, add a comment using one of the following commands:\n" + \
2023-07-16 15:00:13 +03:00
commands_text