Remove 'bitbucket' explicit dependency anywhere that's not in bitbucket_provider.py

This commit is contained in:
Ori Kotek
2023-09-10 14:06:13 +03:00
parent adb9964823
commit 115b513c9b
11 changed files with 38 additions and 32 deletions

View File

@ -54,11 +54,16 @@ class CodeCommitClient:
def __init__(self):
self.boto_client = None
def is_supported(self, capability: str) -> bool:
if capability in ["gfm_markdown"]:
return False
return True
def _connect_boto_client(self):
try:
self.boto_client = boto3.client("codecommit")
except Exception as e:
raise ValueError(f"Failed to connect to AWS CodeCommit: {e}")
raise ValueError(f"Failed to connect to AWS CodeCommit: {e}") from e
def get_differences(self, repo_name: int, destination_commit: str, source_commit: str):
"""