azure_devops/pull_requests/methods/delete_comment.rs
1use super::super::PullRequestsClient;
2use crate::constants::ApiPath;
3use crate::error::Result;
4use serde_json;
5
6impl PullRequestsClient<'_> {
7 pub async fn delete_comment(
8 &self,
9 repo: &str,
10 pr: i64,
11 thread: i64,
12 comment: i64,
13 ) -> Result<()> {
14 self.http
15 .delete::<serde_json::Value>(&ApiPath::pr_comment(repo, pr, thread, comment), &[])
16 .await
17 .map(|_| ())
18 }
19}