Skip to content

Get Comment

codecommit_get_comment R Documentation

Returns the content of a comment made on a change, file, or commit in a repository

Description

Returns the content of a comment made on a change, file, or commit in a repository.

Reaction counts might include numbers from user identities who were deleted after the reaction was made. For a count of reactions from active identities, use GetCommentReactions.

Usage

codecommit_get_comment(commentId)

Arguments

commentId

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

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$get_comment(
  commentId = "string"
)