fix bitbucket ask issue

This commit is contained in:
sarbjitgrewal
2023-08-14 14:30:30 +05:30
parent 230d684cd3
commit cca951d787

View File

@ -26,6 +26,13 @@ class BitbucketProvider:
if pr_url:
self.set_pr(pr_url)
def get_repo_settings(self):
try:
contents = self.repo_obj.get_contents(".pr_agent.toml", ref=self.pr.head.sha).decoded_content
return contents
except Exception:
return ""
def is_supported(self, capability: str) -> bool:
if capability in ['get_issue_comments', 'create_inline_comment', 'publish_inline_comments', 'get_labels']:
return False