Show commit details above changed files
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user