azure-devops 0.1.0

Idiomatic Rust client for Azure DevOps REST APIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use super::super::models::Comment;
use super::super::PullRequestsClient;
use crate::constants::ApiPath;
use crate::error::Result;

impl PullRequestsClient<'_> {
    pub async fn list_comments(&self, repo: &str, pr: i64, thread: i64) -> Result<Vec<Comment>> {
        self.http
            .get(&ApiPath::pr_comments(repo, pr, thread), &[])
            .await
    }
}