azure_devops/pull_requests/methods/list_commits.rs
1use super::super::PullRequestsClient;
2use crate::constants::ApiPath;
3use crate::error::Result;
4
5impl PullRequestsClient<'_> {
6 pub async fn list_commits(
7 &self,
8 repo: &str,
9 id: i64,
10 ) -> Result<Vec<crate::repositories::models::GitCommit>> {
11 self.http.get(&ApiPath::pr_commits(repo, id), &[]).await
12 }
13}