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

@ -101,8 +101,7 @@ class BitbucketProvider(GitProvider):
return False
def is_supported(self, capability: str) -> bool:
if capability in ['get_issue_comments', 'publish_inline_comments', 'get_labels']:
if capability in ['get_issue_comments', 'publish_inline_comments', 'get_labels', 'gfm_markdown']:
return False
return True
@ -180,11 +179,6 @@ class BitbucketProvider(GitProvider):
for comment in comments:
self.publish_inline_comment(comment['body'], comment['start_line'], comment['path'])
def publish_bitbucket_inline_comments(self, comments: list[dict]):
for comment in comments:
self.publish_inline_comment(comment['body'],comment['position'], comment['path'])
def get_title(self):
return self.pr.title