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 |
Posts a comment in reply to an existing comment on a comparison between commits or a pull request.
Synopsis
- data PostCommentReply = PostCommentReply' {}
- newPostCommentReply :: Text -> Text -> PostCommentReply
- postCommentReply_clientRequestToken :: Lens' PostCommentReply (Maybe Text)
- postCommentReply_inReplyTo :: Lens' PostCommentReply Text
- postCommentReply_content :: Lens' PostCommentReply Text
- data PostCommentReplyResponse = PostCommentReplyResponse' {
- comment :: Maybe Comment
- httpStatus :: Int
- newPostCommentReplyResponse :: Int -> PostCommentReplyResponse
- postCommentReplyResponse_comment :: Lens' PostCommentReplyResponse (Maybe Comment)
- postCommentReplyResponse_httpStatus :: Lens' PostCommentReplyResponse Int
Creating a Request
data PostCommentReply Source #
See: newPostCommentReply
smart constructor.
PostCommentReply' | |
|
Instances
Create a value of PostCommentReply
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:clientRequestToken:PostCommentReply'
, postCommentReply_clientRequestToken
- A unique, client-generated idempotency token that, when provided in a
request, ensures the request cannot be repeated with a changed
parameter. If a request is received with the same parameters and a token
is included, the request returns information about the initial request
that used that token.
$sel:inReplyTo:PostCommentReply'
, postCommentReply_inReplyTo
- The system-generated ID of the comment to which you want to reply. To
get this ID, use GetCommentsForComparedCommit or
GetCommentsForPullRequest.
$sel:content:PostCommentReply'
, postCommentReply_content
- The contents of your reply to a comment.
Request Lenses
postCommentReply_clientRequestToken :: Lens' PostCommentReply (Maybe Text) Source #
A unique, client-generated idempotency token that, when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request returns information about the initial request that used that token.
postCommentReply_inReplyTo :: Lens' PostCommentReply Text Source #
The system-generated ID of the comment to which you want to reply. To get this ID, use GetCommentsForComparedCommit or GetCommentsForPullRequest.
postCommentReply_content :: Lens' PostCommentReply Text Source #
The contents of your reply to a comment.
Destructuring the Response
data PostCommentReplyResponse Source #
See: newPostCommentReplyResponse
smart constructor.
PostCommentReplyResponse' | |
|
Instances
newPostCommentReplyResponse Source #
Create a value of PostCommentReplyResponse
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:PostCommentReplyResponse'
, postCommentReplyResponse_comment
- Information about the reply to a comment.
$sel:httpStatus:PostCommentReplyResponse'
, postCommentReplyResponse_httpStatus
- The response's http status code.
Response Lenses
postCommentReplyResponse_comment :: Lens' PostCommentReplyResponse (Maybe Comment) Source #
Information about the reply to a comment.
postCommentReplyResponse_httpStatus :: Lens' PostCommentReplyResponse Int Source #
The response's http status code.