mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-03 04:10:49 +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
|
||||
|
||||
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(
|
||||
|
Reference in New Issue
Block a user