diff --git a/pr_agent/settings/configuration.toml b/pr_agent/settings/configuration.toml
index 5917b274e..61df54178 100644
--- a/pr_agent/settings/configuration.toml
+++ b/pr_agent/settings/configuration.toml
@@ -58,7 +58,8 @@ use_bullet_points=true
extra_instructions = ""
enable_pr_type=true
final_update_message = true
-enable_help_text=true
+enable_help_text=false
+enable_help_comment=true
## changes walkthrough section
enable_semantic_files_types=true
collapsible_file_list='adaptive' # true, false, 'adaptive'
diff --git a/pr_agent/tools/pr_description.py b/pr_agent/tools/pr_description.py
index f5dfa1a22..cf85d13fb 100644
--- a/pr_agent/tools/pr_description.py
+++ b/pr_agent/tools/pr_description.py
@@ -11,7 +11,7 @@
from pr_agent.algo.token_handler import TokenHandler
from pr_agent.algo.utils import load_yaml, set_custom_labels, get_user_labels, ModelType
from pr_agent.config_loader import get_settings
-from pr_agent.git_providers import get_git_provider
+from pr_agent.git_providers import get_git_provider, GithubProvider
from pr_agent.git_providers.git_provider import get_main_pr_language
from pr_agent.log import get_logger
from pr_agent.servers.help import HelpMessage
@@ -106,6 +106,12 @@ async def run(self):
pr_body += "
Tool | Description |
"
- pr_comment += f"\n\n\n[DESCRIBE]({base_path}/DESCRIBE.md) | Generates PR description - title, type, summary, code walkthrough and labels |
"
- pr_comment += f"\n\n\n[REVIEW]({base_path}/REVIEW.md) | Adjustable feedback about the PR, possible issues, security concerns, review effort and more |
"
- pr_comment += f"\n\n\n[IMPROVE]({base_path}/IMPROVE.md) | Code suggestions for improving the PR. |
"
- pr_comment += f"\n\n\n[ASK]({base_path}/ASK.md) | Answering free-text questions about the PR. |
"
- pr_comment += f"\n\n\n[SIMILAR ISSUE]({base_path}/SIMILAR_ISSUE.md) | Automatically retrieves and presents similar issues. |
"
- pr_comment += f"\n\n\n[UPDATE CHANGELOG]({base_path}/UPDATE_CHANGELOG.md) | Automatically updates the changelog. |
"
- pr_comment += f"\n\n\n[ADD DOCUMENTATION]({base_path}/ADD_DOCUMENTATION.md) | Generates documentation to methods/functions/classes that changed in the PR. |
"
- pr_comment += f"\n\n\n[GENERATE CUSTOM LABELS]({base_path}/GENERATE_CUSTOM_LABELS.md) | Generates custom labels for the PR, based on specific guidelines defined by the user |
"
- pr_comment += f"\n\n\n[ANALYZE]({base_path}/Analyze.md) | Identifies code components that changed in the PR, and enables to interactively generate tests, docs, and code suggestions for each component. |
"
- pr_comment += f"\n\n\n[TEST]({base_path}/TEST.md) | Generates unit tests for a selected component, based on the PR code change. |
"
- pr_comment += f"\n\n\n[CI FEEDBACK]({base_path}/CI_FEEDBACK.md) | Generates feedback and analysis for a failed CI job. |
"
- pr_comment += f"\n\n\n[CUSTOM SUGGESTIONS]({base_path}/CUSTOM_SUGGESTIONS.md) | Generates custom suggestions for improving the PR code, based on specific guidelines defined by the user. |
"
- pr_comment += "
\n\n"
- pr_comment += f"""\n\nNote that each tool be [invoked automatically](https://github.com/Codium-ai/pr-agent/blob/main/Usage.md#github-app-automatic-tools-for-pr-actions) when a new PR is opened, or called manually by [commenting on a PR](https://github.com/Codium-ai/pr-agent/blob/main/Usage.md#online-usage)."""
+
+ tool_names = []
+ tool_names.append(f"[DESCRIBE]({base_path}/DESCRIBE.md)")
+ tool_names.append(f"[REVIEW]({base_path}/REVIEW.md)")
+ tool_names.append(f"[IMPROVE]({base_path}/IMPROVE.md)")
+ tool_names.append(f"[ANALYZE]({base_path}/Analyze.md)")
+ tool_names.append(f"[UPDATE CHANGELOG]({base_path}/UPDATE_CHANGELOG.md)")
+ tool_names.append(f"[ADD DOCUMENTATION]({base_path}/ADD_DOCUMENTATION.md)")
+ tool_names.append(f"[ASK]({base_path}/ASK.md)")
+ tool_names.append(f"[GENERATE CUSTOM LABELS]({base_path}/GENERATE_CUSTOM_LABELS.md)")
+ tool_names.append(f"[TEST]({base_path}/TEST.md)")
+ tool_names.append(f"[CI FEEDBACK]({base_path}/CI_FEEDBACK.md)")
+ tool_names.append(f"[CUSTOM SUGGESTIONS]({base_path}/CUSTOM_SUGGESTIONS.md)")
+ tool_names.append(f"[SIMILAR ISSUE]({base_path}/SIMILAR_ISSUE.md)")
+
+ descriptions = []
+ descriptions.append("Generates PR description - title, type, summary, code walkthrough and labels")
+ descriptions.append("Adjustable feedback about the PR, possible issues, security concerns, review effort and more")
+ descriptions.append("Code suggestions for improving the PR.")
+ descriptions.append("Identifies code components that changed in the PR, and enables to interactively generate tests, docs, and code suggestions for each component.")
+ descriptions.append("Automatically updates the changelog.")
+ descriptions.append("Generates documentation to methods/functions/classes that changed in the PR.")
+ descriptions.append("Answering free-text questions about the PR.")
+ descriptions.append("Generates custom labels for the PR, based on specific guidelines defined by the user")
+ descriptions.append("Generates unit tests for a selected component, based on the PR code change.")
+ descriptions.append("Generates feedback and analysis for a failed CI job.")
+ descriptions.append("Generates custom suggestions for improving the PR code, based on specific guidelines defined by the user.")
+ descriptions.append("Automatically retrieves and presents similar issues.")
+
+ commands =[]
+ commands.append("`/describe`")
+ commands.append("`/review`")
+ commands.append("`/improve`")
+ commands.append("`/analyze`")
+ commands.append("`/update_changelog`")
+ commands.append("`/add_docs`")
+ commands.append("`/ask`")
+ commands.append("`/generate_labels`")
+ commands.append("`/test`")
+ commands.append("`/checks`")
+ commands.append("`/custom_suggestions`")
+ commands.append("`/similar_issue`")
+
+ checkbox_list = []
+ checkbox_list.append(" - [ ] Send ")
+ checkbox_list.append(" - [ ] Send ")
+ checkbox_list.append(" - [ ] Send ")
+ checkbox_list.append(" - [ ] Send ")
+ checkbox_list.append(" - [ ] Send ")
+ checkbox_list.append(" - [ ] Send ")
+ checkbox_list.append("[*]")
+ checkbox_list.append("[*]")
+ checkbox_list.append("[*]")
+ checkbox_list.append("[*]")
+ checkbox_list.append("[*]")
+ checkbox_list.append("[*]")
+
+ if isinstance(self.git_provider, GithubProvider):
+ pr_comment += f"Tool | Command | Description |
"
+ for i in range(len(tool_names)):
+ pr_comment += f"\n\n\n{tool_names[i]} | {commands[i]} | {descriptions[i]} |
"
+ # pr_comment += f"\n\n\n[DESCRIBE]({base_path}/DESCRIBE.md) | Generates PR description - title, type, summary, code walkthrough and labels |
"
+ # pr_comment += f"\n\n\n[REVIEW]({base_path}/REVIEW.md) | Adjustable feedback about the PR, possible issues, security concerns, review effort and more |
"
+ # pr_comment += f"\n\n\n[IMPROVE]({base_path}/IMPROVE.md) | Code suggestions for improving the PR. |
"
+ # pr_comment += f"\n\n\n[ASK]({base_path}/ASK.md) | Answering free-text questions about the PR. |
"
+ # pr_comment += f"\n\n\n[SIMILAR ISSUE]({base_path}/SIMILAR_ISSUE.md) | Automatically retrieves and presents similar issues. |
"
+ # pr_comment += f"\n\n\n[UPDATE CHANGELOG]({base_path}/UPDATE_CHANGELOG.md) | Automatically updates the changelog. |
"
+ # pr_comment += f"\n\n\n[ADD DOCUMENTATION]({base_path}/ADD_DOCUMENTATION.md) | Generates documentation to methods/functions/classes that changed in the PR. |
"
+ # pr_comment += f"\n\n\n[GENERATE CUSTOM LABELS]({base_path}/GENERATE_CUSTOM_LABELS.md) | Generates custom labels for the PR, based on specific guidelines defined by the user |
"
+ # pr_comment += f"\n\n\n[ANALYZE]({base_path}/Analyze.md) | Identifies code components that changed in the PR, and enables to interactively generate tests, docs, and code suggestions for each component. |
"
+ # pr_comment += f"\n\n\n[TEST]({base_path}/TEST.md) | Generates unit tests for a selected component, based on the PR code change. |
"
+ # pr_comment += f"\n\n\n[CI FEEDBACK]({base_path}/CI_FEEDBACK.md) | Generates feedback and analysis for a failed CI job. |
"
+ # pr_comment += f"\n\n\n[CUSTOM SUGGESTIONS]({base_path}/CUSTOM_SUGGESTIONS.md) | Generates custom suggestions for improving the PR code, based on specific guidelines defined by the user. |
"
+ pr_comment += "
\n\n"
+ pr_comment += f"""\n\nNote that each tool be [invoked automatically](https://github.com/Codium-ai/pr-agent/blob/main/Usage.md#github-app-automatic-tools-for-pr-actions) when a new PR is opened, or called manually by [commenting on a PR](https://github.com/Codium-ai/pr-agent/blob/main/Usage.md#online-usage)."""
if get_settings().config.publish_output:
self.git_provider.publish_comment(pr_comment)
except Exception as e: