mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-05 13:20:39 +08:00
Fix wrong parameters for gitea get_file_content method
This commit is contained in:
@ -409,7 +409,7 @@ class GiteaProvider(GitProvider):
|
|||||||
def _get_file_content_from_base(self, filename: str) -> str:
|
def _get_file_content_from_base(self, filename: str) -> str:
|
||||||
return self.repo_api.get_file_content(
|
return self.repo_api.get_file_content(
|
||||||
owner=self.owner,
|
owner=self.owner,
|
||||||
repo=self.base_ref,
|
repo=self.repo,
|
||||||
commit_sha=self.base_sha,
|
commit_sha=self.base_sha,
|
||||||
filepath=filename
|
filepath=filename
|
||||||
)
|
)
|
||||||
@ -417,7 +417,7 @@ class GiteaProvider(GitProvider):
|
|||||||
def _get_file_content_from_latest_commit(self, filename: str) -> str:
|
def _get_file_content_from_latest_commit(self, filename: str) -> str:
|
||||||
return self.repo_api.get_file_content(
|
return self.repo_api.get_file_content(
|
||||||
owner=self.owner,
|
owner=self.owner,
|
||||||
repo=self.base_ref,
|
repo=self.repo,
|
||||||
commit_sha=self.last_commit.sha,
|
commit_sha=self.last_commit.sha,
|
||||||
filepath=filename
|
filepath=filename
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user