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 the content of a comment made on a change, file, or commit in a repository.
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.
Synopsis
- data GetComment = GetComment' {}
- newGetComment :: Text -> GetComment
- getComment_commentId :: Lens' GetComment Text
- data GetCommentResponse = GetCommentResponse' {
- comment :: Maybe Comment
- httpStatus :: Int
- newGetCommentResponse :: Int -> GetCommentResponse
- getCommentResponse_comment :: Lens' GetCommentResponse (Maybe Comment)
- getCommentResponse_httpStatus :: Lens' GetCommentResponse Int
Creating a Request
data GetComment Source #
See: newGetComment
smart constructor.
Instances
Create a value of GetComment
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:commentId:GetComment'
, getComment_commentId
- The unique, system-generated ID of the comment. To get this ID, use
GetCommentsForComparedCommit or GetCommentsForPullRequest.
Request Lenses
getComment_commentId :: Lens' GetComment Text Source #
The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
Destructuring the Response
data GetCommentResponse Source #
See: newGetCommentResponse
smart constructor.
GetCommentResponse' | |
|
Instances
newGetCommentResponse Source #
Create a value of GetCommentResponse
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:comment:GetCommentResponse'
, getCommentResponse_comment
- The contents of the comment.
$sel:httpStatus:GetCommentResponse'
, getCommentResponse_httpStatus
- The response's http status code.
Response Lenses
getCommentResponse_comment :: Lens' GetCommentResponse (Maybe Comment) Source #
The contents of the comment.
getCommentResponse_httpStatus :: Lens' GetCommentResponse Int Source #
The response's http status code.