Implementing 'is_supported' method

This commit is contained in:
Patryk Kowalski
2023-07-25 12:35:39 +02:00
parent 6170995665
commit 918549a4fc

View File

@ -77,8 +77,9 @@ class LocalGitProvider(GitProvider):
raise ValueError('Error while rebasing. Resolve conflicts before retrying.') from e
def is_supported(self, capability: str) -> bool:
# TODO implement
pass
if capability in ['get_issue_comments', 'create_inline_comment', 'publish_inline_comments', 'get_labels']:
return False
return True
def get_diff_files(self) -> list[FilePatchInfo]:
diffs = self.repo.head.commit.diff(