Merge pull request #208 from sarbjitsinghgrewal/fix_bitbucket_ask_issue

Fix bitbucket ask issue
This commit is contained in:
Ori Kotek
2023-08-14 14:52:45 +03:00
committed by GitHub
2 changed files with 8 additions and 1 deletions

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