use super::super::models::GitCommit;
use super::super::RepositoriesClient;
use crate::constants::ApiPath;
use crate::error::Result;
impl RepositoriesClient<'_> {
pub async fn get_commit(&self, id: &str, sha: &str) -> Result<GitCommit> {
self.http
.get(&ApiPath::repository_commit(id, sha), &[])
.await
}
}