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 on a pull request.
Synopsis
- data PostCommentForPullRequest = PostCommentForPullRequest' {}
- newPostCommentForPullRequest :: Text -> Text -> Text -> Text -> Text -> PostCommentForPullRequest
- postCommentForPullRequest_location :: Lens' PostCommentForPullRequest (Maybe Location)
- postCommentForPullRequest_clientRequestToken :: Lens' PostCommentForPullRequest (Maybe Text)
- postCommentForPullRequest_pullRequestId :: Lens' PostCommentForPullRequest Text
- postCommentForPullRequest_repositoryName :: Lens' PostCommentForPullRequest Text
- postCommentForPullRequest_beforeCommitId :: Lens' PostCommentForPullRequest Text
- postCommentForPullRequest_afterCommitId :: Lens' PostCommentForPullRequest Text
- postCommentForPullRequest_content :: Lens' PostCommentForPullRequest Text
- data PostCommentForPullRequestResponse = PostCommentForPullRequestResponse' {}
- newPostCommentForPullRequestResponse :: Int -> PostCommentForPullRequestResponse
- postCommentForPullRequestResponse_beforeBlobId :: Lens' PostCommentForPullRequestResponse (Maybe Text)
- postCommentForPullRequestResponse_location :: Lens' PostCommentForPullRequestResponse (Maybe Location)
- postCommentForPullRequestResponse_afterCommitId :: Lens' PostCommentForPullRequestResponse (Maybe Text)
- postCommentForPullRequestResponse_pullRequestId :: Lens' PostCommentForPullRequestResponse (Maybe Text)
- postCommentForPullRequestResponse_afterBlobId :: Lens' PostCommentForPullRequestResponse (Maybe Text)
- postCommentForPullRequestResponse_beforeCommitId :: Lens' PostCommentForPullRequestResponse (Maybe Text)
- postCommentForPullRequestResponse_repositoryName :: Lens' PostCommentForPullRequestResponse (Maybe Text)
- postCommentForPullRequestResponse_comment :: Lens' PostCommentForPullRequestResponse (Maybe Comment)
- postCommentForPullRequestResponse_httpStatus :: Lens' PostCommentForPullRequestResponse Int
Creating a Request
data PostCommentForPullRequest Source #
See: newPostCommentForPullRequest
smart constructor.
PostCommentForPullRequest' | |
|
Instances
newPostCommentForPullRequest Source #
Create a value of PostCommentForPullRequest
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:location:PostCommentForPullRequest'
, postCommentForPullRequest_location
- The location of the change where you want to post your comment. If no
location is provided, the comment is posted as a general comment on the
pull request difference between the before commit ID and the after
commit ID.
$sel:clientRequestToken:PostCommentForPullRequest'
, postCommentForPullRequest_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:pullRequestId:PostCommentForPullRequest'
, postCommentForPullRequest_pullRequestId
- The system-generated ID of the pull request. To get this ID, use
ListPullRequests.
$sel:repositoryName:PostCommentForPullRequest'
, postCommentForPullRequest_repositoryName
- The name of the repository where you want to post a comment on a pull
request.
$sel:beforeCommitId:PostCommentForPullRequest'
, postCommentForPullRequest_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:afterCommitId:PostCommentForPullRequest'
, postCommentForPullRequest_afterCommitId
- The full commit ID of the commit in the source branch that is the
current tip of the branch for the pull request when you post the
comment.
$sel:content:PostCommentForPullRequest'
, postCommentForPullRequest_content
- The content of your comment on the change.
Request Lenses
postCommentForPullRequest_location :: Lens' PostCommentForPullRequest (Maybe Location) Source #
The location of the change where you want to post your comment. If no location is provided, the comment is posted as a general comment on the pull request difference between the before commit ID and the after commit ID.
postCommentForPullRequest_clientRequestToken :: Lens' PostCommentForPullRequest (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.
postCommentForPullRequest_pullRequestId :: Lens' PostCommentForPullRequest Text Source #
The system-generated ID of the pull request. To get this ID, use ListPullRequests.
postCommentForPullRequest_repositoryName :: Lens' PostCommentForPullRequest Text Source #
The name of the repository where you want to post a comment on a pull request.
postCommentForPullRequest_beforeCommitId :: Lens' PostCommentForPullRequest 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.
postCommentForPullRequest_afterCommitId :: Lens' PostCommentForPullRequest Text Source #
The full commit ID of the commit in the source branch that is the current tip of the branch for the pull request when you post the comment.
postCommentForPullRequest_content :: Lens' PostCommentForPullRequest Text Source #
The content of your comment on the change.
Destructuring the Response
data PostCommentForPullRequestResponse Source #
See: newPostCommentForPullRequestResponse
smart constructor.
PostCommentForPullRequestResponse' | |
|
Instances
newPostCommentForPullRequestResponse Source #
Create a value of PostCommentForPullRequestResponse
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:beforeBlobId:PostCommentForPullRequestResponse'
, postCommentForPullRequestResponse_beforeBlobId
- In the directionality of the pull request, the blob ID of the before
blob.
$sel:location:PostCommentForPullRequest'
, postCommentForPullRequestResponse_location
- The location of the change where you posted your comment.
$sel:afterCommitId:PostCommentForPullRequest'
, postCommentForPullRequestResponse_afterCommitId
- The full commit ID of the commit in the destination branch where the
pull request is merged.
$sel:pullRequestId:PostCommentForPullRequest'
, postCommentForPullRequestResponse_pullRequestId
- The system-generated ID of the pull request.
$sel:afterBlobId:PostCommentForPullRequestResponse'
, postCommentForPullRequestResponse_afterBlobId
- In the directionality of the pull request, the blob ID of the after
blob.
$sel:beforeCommitId:PostCommentForPullRequest'
, postCommentForPullRequestResponse_beforeCommitId
- The full commit ID of the commit in the source branch used to create the
pull request, or in the case of an updated pull request, the full commit
ID of the commit used to update the pull request.
$sel:repositoryName:PostCommentForPullRequest'
, postCommentForPullRequestResponse_repositoryName
- The name of the repository where you posted a comment on a pull request.
$sel:comment:PostCommentForPullRequestResponse'
, postCommentForPullRequestResponse_comment
- The content of the comment you posted.
$sel:httpStatus:PostCommentForPullRequestResponse'
, postCommentForPullRequestResponse_httpStatus
- The response's http status code.
Response Lenses
postCommentForPullRequestResponse_beforeBlobId :: Lens' PostCommentForPullRequestResponse (Maybe Text) Source #
In the directionality of the pull request, the blob ID of the before blob.
postCommentForPullRequestResponse_location :: Lens' PostCommentForPullRequestResponse (Maybe Location) Source #
The location of the change where you posted your comment.
postCommentForPullRequestResponse_afterCommitId :: Lens' PostCommentForPullRequestResponse (Maybe Text) Source #
The full commit ID of the commit in the destination branch where the pull request is merged.
postCommentForPullRequestResponse_pullRequestId :: Lens' PostCommentForPullRequestResponse (Maybe Text) Source #
The system-generated ID of the pull request.
postCommentForPullRequestResponse_afterBlobId :: Lens' PostCommentForPullRequestResponse (Maybe Text) Source #
In the directionality of the pull request, the blob ID of the after blob.
postCommentForPullRequestResponse_beforeCommitId :: Lens' PostCommentForPullRequestResponse (Maybe Text) Source #
The full commit ID of the commit in the source branch used to create the pull request, or in the case of an updated pull request, the full commit ID of the commit used to update the pull request.
postCommentForPullRequestResponse_repositoryName :: Lens' PostCommentForPullRequestResponse (Maybe Text) Source #
The name of the repository where you posted a comment on a pull request.
postCommentForPullRequestResponse_comment :: Lens' PostCommentForPullRequestResponse (Maybe Comment) Source #
The content of the comment you posted.
postCommentForPullRequestResponse_httpStatus :: Lens' PostCommentForPullRequestResponse Int Source #
The response's http status code.