diff --git a/pr_agent/git_providers/github_provider.py b/pr_agent/git_providers/github_provider.py index fa52b7dc..b2b9d1e3 100644 --- a/pr_agent/git_providers/github_provider.py +++ b/pr_agent/git_providers/github_provider.py @@ -111,7 +111,7 @@ class GithubProvider(GitProvider): return f"{self.base_url_html}/{repo_path}.git" #https://github.com / /.git # Given a git repo url, return prefix and suffix of the provider in order to view a given file belonging to that repo. - # Example: https://github.com/qodo-ai/pr-agent.git and branch: v0.8 -> prefix: "https://github.com/qodo-ai/pr-agent/blob/v0.8", suffix: "" + # Example: https://github.com/Blackbox-ai/pr-agent.git and branch: v0.8 -> prefix: "https://github.com/Blackbox-ai/pr-agent/blob/v0.8", suffix: "" # In case git url is not provided, provider will use PR context (which includes branch) to determine the prefix and suffix. def get_canonical_url_parts(self, repo_git_url:str, desired_branch:str) -> Tuple[str, str]: owner = None diff --git a/pr_agent/git_providers/gitlab_provider.py b/pr_agent/git_providers/gitlab_provider.py index e9db1a37..326781a3 100644 --- a/pr_agent/git_providers/gitlab_provider.py +++ b/pr_agent/git_providers/gitlab_provider.py @@ -968,8 +968,8 @@ class GitLabProvider(GitProvider): # https://docs.gitlab.com/user/profile/personal_access_tokens/#clone-repository-using-personal-access-token # requires a username, which may not be applicable. # The following solution is taken from: https://stackoverflow.com/questions/25409700/using-gitlab-token-to-clone-without-authentication/35003812#35003812 - # For example: For repo url: https://gitlab.codium-inc.com/qodo/autoscraper.git - # Then to clone one will issue: 'git clone https://oauth2:@gitlab.codium-inc.com/qodo/autoscraper.git' + # For example: For repo url: https://gitlab.codium-inc.com/Blackbox/autoscraper.git + # Then to clone one will issue: 'git clone https://oauth2:@gitlab.codium-inc.com/Blackbox/autoscraper.git' clone_url = f"{scheme}oauth2:{access_token}@gitlab.{base_url}" return clone_url diff --git a/pr_agent/git_providers/utils.py b/pr_agent/git_providers/utils.py index 1e64b957..d8b3aa01 100644 --- a/pr_agent/git_providers/utils.py +++ b/pr_agent/git_providers/utils.py @@ -101,7 +101,7 @@ def handle_configurations_errors(config_errors, git_provider): err_message = err['error'] config_type = err['category'] header = f"❌ **PR-Agent failed to apply '{config_type}' repo settings**" - body = f"{header}\n\nThe configuration file needs to be a valid [TOML](https://qodo-merge-docs.qodo.ai/usage-guide/configuration_options/), please fix it.\n\n" + body = f"{header}\n\nThe configuration file needs to be a valid [TOML](https://Blackbox-merge-docs.Blackbox.ai/usage-guide/configuration_options/), please fix it.\n\n" body += f"___\n\n**Error message:**\n`{err_message}`\n\n" if git_provider.is_supported("gfm_markdown"): body += f"\n\n
Configuration content:\n\n```toml\n{configuration_file_content}\n```\n\n
" diff --git a/pr_agent/servers/atlassian-connect-qodo-merge.json b/pr_agent/servers/atlassian-connect-qodo-merge.json index 5c9c2250..761be42a 100644 --- a/pr_agent/servers/atlassian-connect-qodo-merge.json +++ b/pr_agent/servers/atlassian-connect-qodo-merge.json @@ -1,10 +1,10 @@ { - "name": "Qodo Merge", - "description": "Qodo Merge", + "name": "Blackbox Merge", + "description": "Blackbox Merge", "key": "app_key", "vendor": { - "name": "Qodo", - "url": "https://qodo.ai" + "name": "Blackbox", + "url": "https://Blackbox.ai" }, "authentication": { "type": "jwt" @@ -32,7 +32,7 @@ ] }, "links": { - "privacy": "https://qodo.ai/privacy-policy", - "terms": "https://qodo.ai/terms" + "privacy": "https://Blackbox.ai/privacy-policy", + "terms": "https://Blackbox.ai/terms" } } diff --git a/pr_agent/servers/atlassian-connect.json b/pr_agent/servers/atlassian-connect.json index 29fa0f7a..0ec23870 100644 --- a/pr_agent/servers/atlassian-connect.json +++ b/pr_agent/servers/atlassian-connect.json @@ -32,7 +32,7 @@ ] }, "links": { - "privacy": "https://qodo.ai/privacy-policy", - "terms": "https://qodo.ai/terms" + "privacy": "https://Blackbox.ai/privacy-policy", + "terms": "https://Blackbox.ai/terms" } } diff --git a/pr_agent/settings/configuration.toml b/pr_agent/settings/configuration.toml index dd2c3864..11e0e532 100644 --- a/pr_agent/settings/configuration.toml +++ b/pr_agent/settings/configuration.toml @@ -2,7 +2,7 @@ # Do not copy this entire file to your repository configuration. # Your repository configuration should only include options you wish to override from the defaults. # -# Use this page: 'https://qodo-merge-docs.qodo.ai/ai_search/' to ask questions about the configuration options. +# Use this page: 'https://Blackbox-merge-docs.Blackbox.ai/ai_search/' to ask questions about the configuration options. [config] # models @@ -50,8 +50,8 @@ duplicate_prompt_examples = false seed=-1 # set positive value to fix the seed (and ensure temperature=0) temperature=0.2 # bring repo metadata 💎 -add_repo_metadata=false # if true, will try to add metadata from files like 'AGENTS.MD', 'CLAUDE.MD', 'QODO.MD' -add_repo_metadata_file_list =["AGENTS.MD", "CLAUDE.MD", "QODO.MD"] +add_repo_metadata=false # if true, will try to add metadata from files like 'AGENTS.MD', 'CLAUDE.MD', 'Blackbox.MD' +add_repo_metadata_file_list =["AGENTS.MD", "CLAUDE.MD", "Blackbox.MD"] # ignore logic ignore_pr_title = ["^\\[Auto\\]", "^Auto"] # a list of regular expressions to match against the PR title to ignore the PR agent ignore_pr_target_branches = [] # a list of regular expressions of target branches to ignore from PR agent when an PR is created diff --git a/pr_agent/settings/pr_help_prompts.toml b/pr_agent/settings/pr_help_prompts.toml index 8bd18200..127c4ad0 100644 --- a/pr_agent/settings/pr_help_prompts.toml +++ b/pr_agent/settings/pr_help_prompts.toml @@ -1,5 +1,5 @@ [pr_help_prompts] -system="""You are Doc-helper, a language models designed to answer questions about a documentation website for an open-soure project called "PR-Agent" (recently renamed to "Qodo Merge"). +system="""You are Doc-helper, a language models designed to answer questions about a documentation website for an open-soure project called "PR-Agent" (recently renamed to "Blackbox Merge"). You will receive a question, and the full documentation website content. Your goal is to provide the best answer to the question using the documentation provided. diff --git a/pr_agent/tools/pr_description.py b/pr_agent/tools/pr_description.py index a6387a92..533f1ddc 100644 --- a/pr_agent/tools/pr_description.py +++ b/pr_agent/tools/pr_description.py @@ -140,12 +140,12 @@ class PRDescription: if isinstance(self.git_provider, GithubProvider): pr_body += ('\n\n___\n\n>
Need help?
  • Type /help how to ... ' 'in the comments thread for any questions about PR-Agent usage.
  • Check out the ' - 'documentation ' + 'documentation ' 'for more information.
  • ') else: # gitlab pr_body += ("\n\n___\n\n
    Need help?- Type /help how to ... in the comments " "thread for any questions about PR-Agent usage.
    - Check out the " - "documentation for more information.
    ") + "documentation for more information.") # elif get_settings().pr_description.enable_help_comment: # pr_body += '\n\n___\n\n> 💡 **PR-Agent usage**: Comment `/help "your question"` on any pull request to receive relevant information' diff --git a/pr_agent/tools/pr_help_message.py b/pr_agent/tools/pr_help_message.py index f7ff9948..19084502 100644 --- a/pr_agent/tools/pr_help_message.py +++ b/pr_agent/tools/pr_help_message.py @@ -173,7 +173,7 @@ class PRHelpMessage: answer_str += f"### Question: \n{self.question_str}\n\n" answer_str += f"### Answer:\n{response_str.strip()}\n\n" answer_str += f"#### Relevant Sources:\n\n" - base_path = "https://qodo-merge-docs.qodo.ai/" + base_path = "https://Blackbox-merge-docs.Blackbox.ai/" for section in relevant_sections: file = section.get('file_name').strip().removesuffix('.md') if str(section['relevant_section_header_string']).strip():