v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1477523442.5 KB

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.

post/#X-Amz-Target=CodeCommit_20150413.GetCommentsForComparedCommit

Query parameters

maxResultsstring

Pagination limit

nextTokenstring

Pagination token

Headers

X-Amz-Target'CodeCommit_20150413.GetCommentsForComparedCommit' required

Request body

repositoryNamestring required

The name of the repository where you want to compare commits.

beforeCommitIdstring

To establish the directionality of the comparison, the full commit ID of the before commit.

afterCommitIdstring required

To establish the directionality of the comparison, the full commit ID of the after commit.

nextTokenstring

An enumeration token that when provided in a request, returns the next batch of the results.

maxResultsinteger

A non-zero, non-negative integer used to limit the number of returned results. The default is 100 comments, but you can configure up to 500.

Response

Success

nextTokenstring

An enumeration token that can be used in a request to return the next batch of the results.