v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1477523442.5 KB

Returns comments made on a pull request.

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.GetCommentsForPullRequest

Query parameters

maxResultsstring

Pagination limit

nextTokenstring

Pagination token

Headers

X-Amz-Target'CodeCommit_20150413.GetCommentsForPullRequest' required

Request body

pullRequestIdstring required

The system-generated ID of the pull request. To get this ID, use <a>ListPullRequests</a>.

repositoryNamestring

The name of the repository that contains the pull request.

beforeCommitIdstring

The full commit ID of the commit in the destination branch that was the tip of the branch at the time the pull request was created.

afterCommitIdstring

The full commit ID of the commit in the source branch that was the tip of the branch at the time the comment was made.

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. You can return up to 500 comments with a single request.

Response

Success

nextTokenstring

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