use super::super::PullRequestsClient;
use crate::constants::ApiPath;
use crate::error::Result;
impl PullRequestsClient<'_> {
pub async fn list_commits(
&self,
repo: &str,
id: i64,
) -> Result<Vec<crate::repositories::models::GitCommit>> {
self.http.get(&ApiPath::pr_commits(repo, id), &[]).await
}
}