Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
Returns the content of a comment made on a change, file, or commit in a repository.
Creating a Request
Creates a value of GetComment
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gcCommentId
- The unique, system-generated ID of the comment. To get this ID, useGetCommentsForComparedCommit
orGetCommentsForPullRequest
.
data GetComment Source #
See: getComment
smart constructor.
Request Lenses
gcCommentId :: Lens' GetComment Text Source #
The unique, system-generated ID of the comment. To get this ID, use GetCommentsForComparedCommit
or GetCommentsForPullRequest
.
Destructuring the Response
Creates a value of GetCommentResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
getrsComment
- The contents of the comment.getrsResponseStatus
- -- | The response status code.
data GetCommentResponse Source #
See: getCommentResponse
smart constructor.
Response Lenses
getrsComment :: Lens' GetCommentResponse (Maybe Comment) Source #
The contents of the comment.
getrsResponseStatus :: Lens' GetCommentResponse Int Source #
- - | The response status code.