Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Posts a comment on a pull request.
Synopsis
- data PostCommentForPullRequest = PostCommentForPullRequest' {}
- newPostCommentForPullRequest :: Text -> Text -> Text -> Text -> Text -> PostCommentForPullRequest
- postCommentForPullRequest_clientRequestToken :: Lens' PostCommentForPullRequest (Maybe Text)
- postCommentForPullRequest_location :: Lens' PostCommentForPullRequest (Maybe Location)
- 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_afterBlobId :: Lens' PostCommentForPullRequestResponse (Maybe Text)
- postCommentForPullRequestResponse_afterCommitId :: Lens' PostCommentForPullRequestResponse (Maybe Text)
- postCommentForPullRequestResponse_beforeBlobId :: Lens' PostCommentForPullRequestResponse (Maybe Text)
- postCommentForPullRequestResponse_beforeCommitId :: Lens' PostCommentForPullRequestResponse (Maybe Text)
- postCommentForPullRequestResponse_comment :: Lens' PostCommentForPullRequestResponse (Maybe Comment)
- postCommentForPullRequestResponse_location :: Lens' PostCommentForPullRequestResponse (Maybe Location)
- postCommentForPullRequestResponse_pullRequestId :: Lens' PostCommentForPullRequestResponse (Maybe Text)
- postCommentForPullRequestResponse_repositoryName :: Lens' PostCommentForPullRequestResponse (Maybe Text)
- 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:
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.
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.
PostCommentForPullRequest
, postCommentForPullRequest_pullRequestId
- The system-generated ID of the pull request. To get this ID, use
ListPullRequests.
PostCommentForPullRequest
, postCommentForPullRequest_repositoryName
- The name of the repository where you want to post a comment on a pull
request.
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.
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.
PostCommentForPullRequest
, postCommentForPullRequest_content
- The content of your comment on the change.
Request Lenses
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_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_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:
PostCommentForPullRequestResponse
, postCommentForPullRequestResponse_afterBlobId
- In the directionality of the pull request, the blob ID of the after
blob.
PostCommentForPullRequest
, postCommentForPullRequestResponse_afterCommitId
- The full commit ID of the commit in the destination branch where the
pull request is merged.
PostCommentForPullRequestResponse
, postCommentForPullRequestResponse_beforeBlobId
- In the directionality of the pull request, the blob ID of the before
blob.
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:comment:PostCommentForPullRequestResponse'
, postCommentForPullRequestResponse_comment
- The content of the comment you posted.
PostCommentForPullRequest
, postCommentForPullRequestResponse_location
- The location of the change where you posted your comment.
PostCommentForPullRequest
, postCommentForPullRequestResponse_pullRequestId
- The system-generated ID of the pull request.
PostCommentForPullRequest
, postCommentForPullRequestResponse_repositoryName
- The name of the repository where you posted a comment on a pull request.
$sel:httpStatus:PostCommentForPullRequestResponse'
, postCommentForPullRequestResponse_httpStatus
- The response's http status code.
Response Lenses
postCommentForPullRequestResponse_afterBlobId :: Lens' PostCommentForPullRequestResponse (Maybe Text) Source #
In the directionality of the pull request, the blob ID of the after blob.
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_beforeBlobId :: Lens' PostCommentForPullRequestResponse (Maybe Text) Source #
In the directionality of the pull request, the blob ID of the before 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_comment :: Lens' PostCommentForPullRequestResponse (Maybe Comment) Source #
The content of the comment you posted.
postCommentForPullRequestResponse_location :: Lens' PostCommentForPullRequestResponse (Maybe Location) Source #
The location of the change where you posted your comment.
postCommentForPullRequestResponse_pullRequestId :: Lens' PostCommentForPullRequestResponse (Maybe Text) Source #
The system-generated ID of 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_httpStatus :: Lens' PostCommentForPullRequestResponse Int Source #
The response's http status code.