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