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