Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
This operation returns paginated results.
Synopsis
- data GetCommentsForPullRequest = GetCommentsForPullRequest' {}
- newGetCommentsForPullRequest :: Text -> GetCommentsForPullRequest
- getCommentsForPullRequest_afterCommitId :: Lens' GetCommentsForPullRequest (Maybe Text)
- getCommentsForPullRequest_nextToken :: Lens' GetCommentsForPullRequest (Maybe Text)
- getCommentsForPullRequest_beforeCommitId :: Lens' GetCommentsForPullRequest (Maybe Text)
- getCommentsForPullRequest_repositoryName :: Lens' GetCommentsForPullRequest (Maybe Text)
- getCommentsForPullRequest_maxResults :: Lens' GetCommentsForPullRequest (Maybe Int)
- getCommentsForPullRequest_pullRequestId :: Lens' GetCommentsForPullRequest Text
- data GetCommentsForPullRequestResponse = GetCommentsForPullRequestResponse' {}
- newGetCommentsForPullRequestResponse :: Int -> GetCommentsForPullRequestResponse
- getCommentsForPullRequestResponse_commentsForPullRequestData :: Lens' GetCommentsForPullRequestResponse (Maybe [CommentsForPullRequest])
- getCommentsForPullRequestResponse_nextToken :: Lens' GetCommentsForPullRequestResponse (Maybe Text)
- getCommentsForPullRequestResponse_httpStatus :: Lens' GetCommentsForPullRequestResponse Int
Creating a Request
data GetCommentsForPullRequest Source #
See: newGetCommentsForPullRequest
smart constructor.
GetCommentsForPullRequest' | |
|
Instances
newGetCommentsForPullRequest Source #
Create a value of GetCommentsForPullRequest
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:afterCommitId:GetCommentsForPullRequest'
, getCommentsForPullRequest_afterCommitId
- 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.
$sel:nextToken:GetCommentsForPullRequest'
, getCommentsForPullRequest_nextToken
- An enumeration token that, when provided in a request, returns the next
batch of the results.
$sel:beforeCommitId:GetCommentsForPullRequest'
, getCommentsForPullRequest_beforeCommitId
- 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.
$sel:repositoryName:GetCommentsForPullRequest'
, getCommentsForPullRequest_repositoryName
- The name of the repository that contains the pull request.
$sel:maxResults:GetCommentsForPullRequest'
, getCommentsForPullRequest_maxResults
- 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.
$sel:pullRequestId:GetCommentsForPullRequest'
, getCommentsForPullRequest_pullRequestId
- The system-generated ID of the pull request. To get this ID, use
ListPullRequests.
Request Lenses
getCommentsForPullRequest_afterCommitId :: Lens' GetCommentsForPullRequest (Maybe Text) Source #
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.
getCommentsForPullRequest_nextToken :: Lens' GetCommentsForPullRequest (Maybe Text) Source #
An enumeration token that, when provided in a request, returns the next batch of the results.
getCommentsForPullRequest_beforeCommitId :: Lens' GetCommentsForPullRequest (Maybe Text) Source #
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.
getCommentsForPullRequest_repositoryName :: Lens' GetCommentsForPullRequest (Maybe Text) Source #
The name of the repository that contains the pull request.
getCommentsForPullRequest_maxResults :: Lens' GetCommentsForPullRequest (Maybe Int) Source #
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.
getCommentsForPullRequest_pullRequestId :: Lens' GetCommentsForPullRequest Text Source #
The system-generated ID of the pull request. To get this ID, use ListPullRequests.
Destructuring the Response
data GetCommentsForPullRequestResponse Source #
See: newGetCommentsForPullRequestResponse
smart constructor.
GetCommentsForPullRequestResponse' | |
|
Instances
newGetCommentsForPullRequestResponse Source #
Create a value of GetCommentsForPullRequestResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:commentsForPullRequestData:GetCommentsForPullRequestResponse'
, getCommentsForPullRequestResponse_commentsForPullRequestData
- An array of comment objects on the pull request.
$sel:nextToken:GetCommentsForPullRequest'
, getCommentsForPullRequestResponse_nextToken
- An enumeration token that can be used in a request to return the next
batch of the results.
$sel:httpStatus:GetCommentsForPullRequestResponse'
, getCommentsForPullRequestResponse_httpStatus
- The response's http status code.
Response Lenses
getCommentsForPullRequestResponse_commentsForPullRequestData :: Lens' GetCommentsForPullRequestResponse (Maybe [CommentsForPullRequest]) Source #
An array of comment objects on the pull request.
getCommentsForPullRequestResponse_nextToken :: Lens' GetCommentsForPullRequestResponse (Maybe Text) Source #
An enumeration token that can be used in a request to return the next batch of the results.
getCommentsForPullRequestResponse_httpStatus :: Lens' GetCommentsForPullRequestResponse Int Source #
The response's http status code.