Skip to main content

comments_for_compared_commits

Creates, updates, deletes, gets or lists a comments_for_compared_commits resource.

Overview

Namecomments_for_compared_commits
TypeResource
Idaws.codecommit.comments_for_compared_commits

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
after_blob_idstringThe full blob ID of the commit used to establish the after of the comparison.
after_commit_idstringThe full commit ID of the commit used to establish the after of the comparison.
before_blob_idstringThe full blob ID of the commit used to establish the before of the comparison.
before_commit_idstringThe full commit ID of the commit used to establish the before of the comparison.
commentsarrayAn array of comment objects. Each comment object contains information about a comment on the comparison between commits.
locationobjectLocation information about the comment on the comparison, including the file name, line number, and whether the version of the file where the comment was made is BEFORE or AFTER.
repository_namestringThe name of the repository that contains the compared commits. (pattern: <code>[\w.-]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_comments_for_compared_commitselectregionReturns information about comments made on the comparison between two commits. 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.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns information about comments made on the comparison between two commits. 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.

SELECT
after_blob_id,
after_commit_id,
before_blob_id,
before_commit_id,
comments,
location,
repository_name
FROM aws.codecommit.comments_for_compared_commits
WHERE region = '{{ region }}' -- required
;