comments_for_compared_commits
Creates, updates, deletes, gets or lists a comments_for_compared_commits resource.
Overview
| Name | comments_for_compared_commits |
| Type | Resource |
| Id | aws.codecommit.comments_for_compared_commits |
Fields
The following fields are returned by SELECT queries:
- get_comments_for_compared_commit
| Name | Datatype | Description |
|---|---|---|
after_blob_id | string | The full blob ID of the commit used to establish the after of the comparison. |
after_commit_id | string | The full commit ID of the commit used to establish the after of the comparison. |
before_blob_id | string | The full blob ID of the commit used to establish the before of the comparison. |
before_commit_id | string | The full commit ID of the commit used to establish the before of the comparison. |
comments | array | An array of comment objects. Each comment object contains information about a comment on the comparison between commits. |
location | object | Location 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_name | string | The name of the repository that contains the compared commits. (pattern: <code>[\w.-]+</code>) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_comments_for_compared_commit | select | region | 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. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_comments_for_compared_commit
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
;