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 |
Creates a pull request in the specified repository.
- createPullRequest :: Text -> CreatePullRequest
- data CreatePullRequest
- cprClientRequestToken :: Lens' CreatePullRequest (Maybe Text)
- cprDescription :: Lens' CreatePullRequest (Maybe Text)
- cprTitle :: Lens' CreatePullRequest Text
- cprTargets :: Lens' CreatePullRequest [Target]
- createPullRequestResponse :: Int -> PullRequest -> CreatePullRequestResponse
- data CreatePullRequestResponse
- cprrsResponseStatus :: Lens' CreatePullRequestResponse Int
- cprrsPullRequest :: Lens' CreatePullRequestResponse PullRequest
Creating a Request
Creates a value of CreatePullRequest
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cprClientRequestToken
- 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 will return information about the initial request that used that token.cprDescription
- A description of the pull request.cprTitle
- The title of the pull request. This title will be used to identify the pull request to other users in the repository.cprTargets
- 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).
data CreatePullRequest Source #
See: createPullRequest
smart constructor.
Request Lenses
cprClientRequestToken :: 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 will return information about the initial request that used that token.
cprDescription :: Lens' CreatePullRequest (Maybe Text) Source #
A description of the pull request.
cprTitle :: Lens' CreatePullRequest Text Source #
The title of the pull request. This title will be used to identify the pull request to other users in the repository.
cprTargets :: 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
createPullRequestResponse Source #
Creates a value of CreatePullRequestResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
cprrsResponseStatus
- -- | The response status code.cprrsPullRequest
- Information about the newly created pull request.
data CreatePullRequestResponse Source #
See: createPullRequestResponse
smart constructor.
Response Lenses
cprrsResponseStatus :: Lens' CreatePullRequestResponse Int Source #
- - | The response status code.
cprrsPullRequest :: Lens' CreatePullRequestResponse PullRequest Source #
Information about the newly created pull request.