Skip to main content

azure_devops/pull_requests/methods/
list_threads.rs

1use super::super::models::GitPullRequestCommentThread;
2use super::super::PullRequestsClient;
3use crate::constants::ApiPath;
4use crate::error::Result;
5
6impl PullRequestsClient<'_> {
7    pub async fn list_threads(
8        &self,
9        repo: &str,
10        id: i64,
11    ) -> Result<Vec<GitPullRequestCommentThread>> {
12        self.http.get(&ApiPath::pr_threads(repo, id), &[]).await
13    }
14}