Show commit details above changed files

This commit is contained in:
Georg Bauer
2026-08-01 14:27:28 +02:00
parent 5396a805b0
commit 3a69b70395
9 changed files with 461 additions and 57 deletions

View File

@@ -316,14 +316,14 @@ pub async fn load_pull(
.map_err(message)
}
pub async fn load_commit_files(
pub async fn load_commit(
server: &Server,
owner: &str,
repository: &str,
sha: &str,
) -> Result<Vec<models::CommitAffectedFiles>, String> {
) -> Result<models::Commit, String> {
client(server)?
.commit_files(&scope(owner, repository)?, sha)
.commit(&scope(owner, repository)?, sha)
.await
.map_err(message)
}