Add repository file browser

This commit is contained in:
Georg Bauer
2026-07-31 11:25:46 +02:00
parent 4e4dfb0db9
commit 7b2b431dfd
11 changed files with 669 additions and 21 deletions

View File

@@ -290,6 +290,26 @@ impl GotchaCore {
Ok(commit_page(branches, &commits, branch.is_none()))
}
pub async fn repository_contents(
&self,
owner: String,
repository: String,
path: String,
) -> Result<Vec<RepositoryContentRow>, GotchaError> {
Ok(repository_content_rows(
load_repository_contents(&self.server()?, &owner, &repository, &path).await?,
))
}
pub async fn repository_file(
&self,
owner: String,
repository: String,
path: String,
) -> Result<Vec<u8>, GotchaError> {
Ok(load_repository_file(&self.server()?, &owner, &repository, &path).await?)
}
pub async fn commit_files(
&self,
owner: String,