Skip to content

Update Comment

codecommit_update_comment R Documentation

Replaces the contents of a comment

Description

Replaces the contents of a comment.

Usage

codecommit_update_comment(commentId, content)

Arguments

commentId

[required] The system-generated ID of the comment you want to update. To get this ID, use get_comments_for_compared_commit or get_comments_for_pull_request.

content

[required] The updated content to replace the existing content of the comment.

Value

A list with the following syntax:

list(
  comment = list(
    commentId = "string",
    content = "string",
    inReplyTo = "string",
    creationDate = as.POSIXct(
      "2015-01-01"
    ),
    lastModifiedDate = as.POSIXct(
      "2015-01-01"
    ),
    authorArn = "string",
    deleted = TRUE|FALSE,
    clientRequestToken = "string",
    callerReactions = list(
      "string"
    ),
    reactionCounts = list(
      123
    )
  )
)

Request syntax

svc$update_comment(
  commentId = "string",
  content = "string"
)