mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 10:55:17 +00:00
Fix wrong parameters for gitea get_file_content method
This commit is contained in:
parent
1bbc673588
commit
865798ef3f
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue