pub async fn update_comment(
        &self,
        comment_id: CommentId,
        body: impl AsRef<str>,
    ) -> Result<models::issues::Comment> {
        let route = format!(
            "repos/{owner}/{repo}/issues/comments/{comment_id}",
            owner = self.owner,
            repo = self.repo,
            comment_id = comment_id
        );

        self.crab
            .post(route, Some(&serde_json::json!({ "body": body.as_ref() })))
            .await
    }
/// Updates a comment in the issue.
/// ```no_run
/// # async fn run() -> octocrab::Result<()> {
/// let comment = octocrab::instance()
///     .issues("owner", "repo")
///     .update_comment(101u64.into(), "Beep Boop")
///     .await?;
/// # Ok(())
/// # }
/// ```
Updates a comment in the issue.
Updates a comment in the issue .
pub async fn update_comment(
        &self,
        comment_id: CommentId,
        body: impl AsRef<str>,
    ) -> Result<models::issues::Comment> {
        let route = format!(
            "repos/{owner}/{repo}/issues/comments/{comment_id}",
            owner = self.owner,
            repo = self.repo,
            comment_id = comment_id
        );
        self.crab
            .post(route, Some(&serde_json::json!({ "body": body.as_ref() })))
            .await
    }
pub async fn update_comment ( & self , comment_id : CommentId , body : impl AsRef < str > , ) -> Result < models :: issues :: Comment > { let route = format ! ( " " owner self owner repo self repo comment_id comment_id ) ; self . crab . post ( route , Some ( & serde_json :: json ! ( { " " body as_ref ( ) } ) ) ) . await }
Updates a comment in the issue.
Updates a comment in the issue .
&self
comment_id
CommentId
body
impl AsRef<str>
&self
comment_id
CommentId
body
impl AsRef<str>
async fn run() -> octocrab::result<()> {
let comment = octocrab::instance()
.issues("owner", "repo")
.update_comment(101u64.into(), "Beep Boop")
.await?.
let comment = octocrab :: instance () . issues ( " owner " " repo " ) . update_comment ( 101u64 . into () " Beep Boop " ) . await? .
ok(())
None
}
None