mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 19:05:18 +00:00
Correct variable
load correct variable from .secrets.toml
This commit is contained in:
parent
7597d27095
commit
07cc7f9f42
1 changed files with 2 additions and 2 deletions
|
|
@ -103,7 +103,7 @@ def should_process_pr_logic(data) -> bool:
|
|||
allowed_folders = get_settings().config.get("allow_only_specific_folders", [])
|
||||
if allowed_folders and pr_id and project_key and repo_slug:
|
||||
from pr_agent.git_providers.bitbucket_server_provider import BitbucketServerProvider
|
||||
bitbucket_server_url = get_settings().get("BITBUCKET_SERVER.URL", "")
|
||||
bitbucket_server_url = get_settings().get("BITBUCKET_SERVER.BASE_URL", "")
|
||||
pr_url = f"{bitbucket_server_url}/projects/{project_key}/repos/{repo_slug}/pull-requests/{pr_id}"
|
||||
provider = BitbucketServerProvider(pr_url=pr_url)
|
||||
changed_files = provider.get_files()
|
||||
|
|
@ -146,7 +146,7 @@ async def handle_webhook(background_tasks: BackgroundTasks, request: Request):
|
|||
pr_id = data["pullRequest"]["id"]
|
||||
repository_name = data["pullRequest"]["toRef"]["repository"]["slug"]
|
||||
project_name = data["pullRequest"]["toRef"]["repository"]["project"]["key"]
|
||||
bitbucket_server = get_settings().get("BITBUCKET_SERVER.URL")
|
||||
bitbucket_server = get_settings().get("BITBUCKET_SERVER.BASE_URL")
|
||||
pr_url = f"{bitbucket_server}/projects/{project_name}/repos/{repository_name}/pull-requests/{pr_id}"
|
||||
|
||||
log_context["api_url"] = pr_url
|
||||
|
|
|
|||
Loading…
Reference in a new issue