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