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