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 |
Creates a pull request in the specified repository.
Synopsis
- data CreatePullRequest = CreatePullRequest' {
- clientRequestToken :: Maybe Text
- description :: Maybe Text
- title :: Text
- targets :: [Target]
- newCreatePullRequest :: Text -> CreatePullRequest
- createPullRequest_clientRequestToken :: Lens' CreatePullRequest (Maybe Text)
- createPullRequest_description :: Lens' CreatePullRequest (Maybe Text)
- createPullRequest_title :: Lens' CreatePullRequest Text
- createPullRequest_targets :: Lens' CreatePullRequest [Target]
- data CreatePullRequestResponse = CreatePullRequestResponse' {}
- newCreatePullRequestResponse :: Int -> PullRequest -> CreatePullRequestResponse
- createPullRequestResponse_httpStatus :: Lens' CreatePullRequestResponse Int
- createPullRequestResponse_pullRequest :: Lens' CreatePullRequestResponse PullRequest
Creating a Request
data CreatePullRequest Source #
See: newCreatePullRequest
smart constructor.
CreatePullRequest' | |
|
Instances
Create a value of CreatePullRequest
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:CreatePullRequest'
, createPullRequest_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.
The AWS SDKs prepopulate client request tokens. If you are using an AWS SDK, an idempotency token is created for you.
$sel:description:CreatePullRequest'
, createPullRequest_description
- A description of the pull request.
$sel:title:CreatePullRequest'
, createPullRequest_title
- The title of the pull request. This title is used to identify the pull
request to other users in the repository.
$sel:targets:CreatePullRequest'
, createPullRequest_targets
- The targets for the pull request, including the source of the code to be
reviewed (the source branch) and the destination where the creator of
the pull request intends the code to be merged after the pull request is
closed (the destination branch).
Request Lenses
createPullRequest_clientRequestToken :: Lens' CreatePullRequest (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.
The AWS SDKs prepopulate client request tokens. If you are using an AWS SDK, an idempotency token is created for you.
createPullRequest_description :: Lens' CreatePullRequest (Maybe Text) Source #
A description of the pull request.
createPullRequest_title :: Lens' CreatePullRequest Text Source #
The title of the pull request. This title is used to identify the pull request to other users in the repository.
createPullRequest_targets :: Lens' CreatePullRequest [Target] Source #
The targets for the pull request, including the source of the code to be reviewed (the source branch) and the destination where the creator of the pull request intends the code to be merged after the pull request is closed (the destination branch).
Destructuring the Response
data CreatePullRequestResponse Source #
See: newCreatePullRequestResponse
smart constructor.
CreatePullRequestResponse' | |
|
Instances
newCreatePullRequestResponse Source #
Create a value of CreatePullRequestResponse
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:httpStatus:CreatePullRequestResponse'
, createPullRequestResponse_httpStatus
- The response's http status code.
$sel:pullRequest:CreatePullRequestResponse'
, createPullRequestResponse_pullRequest
- Information about the newly created pull request.
Response Lenses
createPullRequestResponse_httpStatus :: Lens' CreatePullRequestResponse Int Source #
The response's http status code.
createPullRequestResponse_pullRequest :: Lens' CreatePullRequestResponse PullRequest Source #
Information about the newly created pull request.