Fix wrong parameters for gitea get_file_content method

This commit is contained in:
y.marinov
2025-06-05 16:01:18 +03:00
parent 1bbc673588
commit 865798ef3f

View File

@ -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
) )