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 the approval states for a specified pull request. Approval states only apply to pull requests that have one or more approval rules applied to them.
Synopsis
- data GetPullRequestApprovalStates = GetPullRequestApprovalStates' {
- pullRequestId :: Text
- revisionId :: Text
- newGetPullRequestApprovalStates :: Text -> Text -> GetPullRequestApprovalStates
- getPullRequestApprovalStates_pullRequestId :: Lens' GetPullRequestApprovalStates Text
- getPullRequestApprovalStates_revisionId :: Lens' GetPullRequestApprovalStates Text
- data GetPullRequestApprovalStatesResponse = GetPullRequestApprovalStatesResponse' {
- approvals :: Maybe [Approval]
- httpStatus :: Int
- newGetPullRequestApprovalStatesResponse :: Int -> GetPullRequestApprovalStatesResponse
- getPullRequestApprovalStatesResponse_approvals :: Lens' GetPullRequestApprovalStatesResponse (Maybe [Approval])
- getPullRequestApprovalStatesResponse_httpStatus :: Lens' GetPullRequestApprovalStatesResponse Int
Creating a Request
data GetPullRequestApprovalStates Source #
See: newGetPullRequestApprovalStates
smart constructor.
GetPullRequestApprovalStates' | |
|
Instances
newGetPullRequestApprovalStates Source #
:: Text | |
-> Text | |
-> GetPullRequestApprovalStates |
Create a value of GetPullRequestApprovalStates
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:GetPullRequestApprovalStates'
, getPullRequestApprovalStates_pullRequestId
- The system-generated ID for the pull request.
$sel:revisionId:GetPullRequestApprovalStates'
, getPullRequestApprovalStates_revisionId
- The system-generated ID for the pull request revision.
Request Lenses
getPullRequestApprovalStates_pullRequestId :: Lens' GetPullRequestApprovalStates Text Source #
The system-generated ID for the pull request.
getPullRequestApprovalStates_revisionId :: Lens' GetPullRequestApprovalStates Text Source #
The system-generated ID for the pull request revision.
Destructuring the Response
data GetPullRequestApprovalStatesResponse Source #
See: newGetPullRequestApprovalStatesResponse
smart constructor.
GetPullRequestApprovalStatesResponse' | |
|
Instances
newGetPullRequestApprovalStatesResponse Source #
Create a value of GetPullRequestApprovalStatesResponse
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:approvals:GetPullRequestApprovalStatesResponse'
, getPullRequestApprovalStatesResponse_approvals
- Information about users who have approved the pull request.
$sel:httpStatus:GetPullRequestApprovalStatesResponse'
, getPullRequestApprovalStatesResponse_httpStatus
- The response's http status code.
Response Lenses
getPullRequestApprovalStatesResponse_approvals :: Lens' GetPullRequestApprovalStatesResponse (Maybe [Approval]) Source #
Information about users who have approved the pull request.
getPullRequestApprovalStatesResponse_httpStatus :: Lens' GetPullRequestApprovalStatesResponse Int Source #
The response's http status code.