Update pr_agent/git_providers/bitbucket_server_provider.py

Co-authored-by: qodo-merge-for-open-source[bot] <189517486+qodo-merge-for-open-source[bot]@users.noreply.github.com>
This commit is contained in:
Boston008 2025-08-11 09:46:37 +08:00 committed by GitHub
parent 4a6a55ca7c
commit 34b562db22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -44,7 +44,7 @@ class BitbucketServerProvider(GitProvider):
if not self.bitbucket_server_url:
raise ValueError("Invalid or missing Bitbucket Server URL parsed from PR URL.")
self.bitbucket_server_url = self._parse_bitbucket_server(url=pr_url)
#If bearer token is provided, use it to authenticate, otherwise use username and password
# If bearer token is provided, use it to authenticate, otherwise use username and password
try:
if self.bearer_token:
self.bitbucket_client = bitbucket_client or Bitbucket(