Skip to main content

update_pr_review_comment

Function update_pr_review_comment 

Source
pub async fn update_pr_review_comment(
    client: &Octocrab,
    owner: &str,
    repo: &str,
    comment_id: u64,
    body: &str,
) -> Result<()>
Expand description

Updates the body of an existing PR review comment.

Used when a duplicate comment is detected but its body differs from the previously posted version; the existing comment is PATCHed in place rather than posting a new one.

ยงErrors

Returns an error if the API request fails. 404 errors (comment not found) are treated as success (idempotent).