Skip to content

/AWS1/CL_CMT=>GETCOMMENTSFORPULLREQUEST()

About GetCommentsForPullRequest

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.

Method Signature

IMPORTING

Required arguments:

IV_PULLREQUESTID TYPE /AWS1/CMTPULLREQUESTID /AWS1/CMTPULLREQUESTID

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

Optional arguments:

IV_REPOSITORYNAME TYPE /AWS1/CMTREPOSITORYNAME /AWS1/CMTREPOSITORYNAME

The name of the repository that contains the pull request. Requirement is conditional: repositoryName must be specified when beforeCommitId and afterCommitId are included.

IV_BEFORECOMMITID TYPE /AWS1/CMTCOMMITID /AWS1/CMTCOMMITID

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. Requirement is conditional: beforeCommitId must be specified when repositoryName is included.

IV_AFTERCOMMITID TYPE /AWS1/CMTCOMMITID /AWS1/CMTCOMMITID

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. Requirement is conditional: afterCommitId must be specified when repositoryName is included.

IV_NEXTTOKEN TYPE /AWS1/CMTNEXTTOKEN /AWS1/CMTNEXTTOKEN

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

IV_MAXRESULTS TYPE /AWS1/CMTMAXRESULTS /AWS1/CMTMAXRESULTS

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.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_CMTGETCOMMENTSFORPU01 /AWS1/CL_CMTGETCOMMENTSFORPU01