mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-04 21:00:40 +08:00
Implementing 'is_supported' method
This commit is contained in:
@ -77,8 +77,9 @@ class LocalGitProvider(GitProvider):
|
|||||||
raise ValueError('Error while rebasing. Resolve conflicts before retrying.') from e
|
raise ValueError('Error while rebasing. Resolve conflicts before retrying.') from e
|
||||||
|
|
||||||
def is_supported(self, capability: str) -> bool:
|
def is_supported(self, capability: str) -> bool:
|
||||||
# TODO implement
|
if capability in ['get_issue_comments', 'create_inline_comment', 'publish_inline_comments', 'get_labels']:
|
||||||
pass
|
return False
|
||||||
|
return True
|
||||||
|
|
||||||
def get_diff_files(self) -> list[FilePatchInfo]:
|
def get_diff_files(self) -> list[FilePatchInfo]:
|
||||||
diffs = self.repo.head.commit.diff(
|
diffs = self.repo.head.commit.diff(
|
||||||
|
Reference in New Issue
Block a user