From a86a3f52f0e9629e6ba93359aab6d7b3ecafd356 Mon Sep 17 00:00:00 2001 From: Ori Kotek Date: Thu, 29 Feb 2024 16:03:00 +0200 Subject: [PATCH] a minor bugfix --- pr_agent/git_providers/github_provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr_agent/git_providers/github_provider.py b/pr_agent/git_providers/github_provider.py index ea152b9e..c1bff0dc 100644 --- a/pr_agent/git_providers/github_provider.py +++ b/pr_agent/git_providers/github_provider.py @@ -25,7 +25,7 @@ class GithubProvider(GitProvider): except Exception: self.installation_id = None self.base_url = get_settings().get("GITHUB.BASE_URL", "https://api.github.com").rstrip("/") - self.base_url_html = self.base_url.split("api")[0].rstrip("/") if "api" in self.base_url else "https://github.com" + self.base_url_html = self.base_url.split("api/")[0].rstrip("/") if "api/" in self.base_url else "https://github.com" self.github_client = self._get_github_client() self.repo = None self.pr_num = None