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 |
Gets information about a pull request in a specified repository.
Synopsis
- data GetPullRequest = GetPullRequest' {}
- newGetPullRequest :: Text -> GetPullRequest
- getPullRequest_pullRequestId :: Lens' GetPullRequest Text
- data GetPullRequestResponse = GetPullRequestResponse' {}
- newGetPullRequestResponse :: Int -> PullRequest -> GetPullRequestResponse
- getPullRequestResponse_httpStatus :: Lens' GetPullRequestResponse Int
- getPullRequestResponse_pullRequest :: Lens' GetPullRequestResponse PullRequest
Creating a Request
data GetPullRequest Source #
See: newGetPullRequest
smart constructor.
GetPullRequest' | |
|
Instances
Create a value of GetPullRequest
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:pullRequestId:GetPullRequest'
, getPullRequest_pullRequestId
- The system-generated ID of the pull request. To get this ID, use
ListPullRequests.
Request Lenses
getPullRequest_pullRequestId :: Lens' GetPullRequest Text Source #
The system-generated ID of the pull request. To get this ID, use ListPullRequests.
Destructuring the Response
data GetPullRequestResponse Source #
See: newGetPullRequestResponse
smart constructor.
GetPullRequestResponse' | |
|
Instances
newGetPullRequestResponse Source #
:: Int | |
-> PullRequest | |
-> GetPullRequestResponse |
Create a value of GetPullRequestResponse
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:GetPullRequestResponse'
, getPullRequestResponse_httpStatus
- The response's http status code.
$sel:pullRequest:GetPullRequestResponse'
, getPullRequestResponse_pullRequest
- Information about the specified pull request.
Response Lenses
getPullRequestResponse_httpStatus :: Lens' GetPullRequestResponse Int Source #
The response's http status code.
getPullRequestResponse_pullRequest :: Lens' GetPullRequestResponse PullRequest Source #
Information about the specified pull request.