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 |
Updates the status of a pull request.
Synopsis
- data UpdatePullRequestStatus = UpdatePullRequestStatus' {}
- newUpdatePullRequestStatus :: Text -> PullRequestStatusEnum -> UpdatePullRequestStatus
- updatePullRequestStatus_pullRequestId :: Lens' UpdatePullRequestStatus Text
- updatePullRequestStatus_pullRequestStatus :: Lens' UpdatePullRequestStatus PullRequestStatusEnum
- data UpdatePullRequestStatusResponse = UpdatePullRequestStatusResponse' {}
- newUpdatePullRequestStatusResponse :: Int -> PullRequest -> UpdatePullRequestStatusResponse
- updatePullRequestStatusResponse_httpStatus :: Lens' UpdatePullRequestStatusResponse Int
- updatePullRequestStatusResponse_pullRequest :: Lens' UpdatePullRequestStatusResponse PullRequest
Creating a Request
data UpdatePullRequestStatus Source #
See: newUpdatePullRequestStatus
smart constructor.
UpdatePullRequestStatus' | |
|
Instances
newUpdatePullRequestStatus Source #
Create a value of UpdatePullRequestStatus
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:UpdatePullRequestStatus'
, updatePullRequestStatus_pullRequestId
- The system-generated ID of the pull request. To get this ID, use
ListPullRequests.
$sel:pullRequestStatus:UpdatePullRequestStatus'
, updatePullRequestStatus_pullRequestStatus
- The status of the pull request. The only valid operations are to update
the status from OPEN
to OPEN
, OPEN
to CLOSED
or from CLOSED
to
CLOSED
.
Request Lenses
updatePullRequestStatus_pullRequestId :: Lens' UpdatePullRequestStatus Text Source #
The system-generated ID of the pull request. To get this ID, use ListPullRequests.
updatePullRequestStatus_pullRequestStatus :: Lens' UpdatePullRequestStatus PullRequestStatusEnum Source #
The status of the pull request. The only valid operations are to update
the status from OPEN
to OPEN
, OPEN
to CLOSED
or from CLOSED
to
CLOSED
.
Destructuring the Response
data UpdatePullRequestStatusResponse Source #
See: newUpdatePullRequestStatusResponse
smart constructor.
UpdatePullRequestStatusResponse' | |
|
Instances
Eq UpdatePullRequestStatusResponse Source # | |
Read UpdatePullRequestStatusResponse Source # | |
Show UpdatePullRequestStatusResponse Source # | |
Defined in Amazonka.CodeCommit.UpdatePullRequestStatus | |
Generic UpdatePullRequestStatusResponse Source # | |
NFData UpdatePullRequestStatusResponse Source # | |
Defined in Amazonka.CodeCommit.UpdatePullRequestStatus rnf :: UpdatePullRequestStatusResponse -> () # | |
type Rep UpdatePullRequestStatusResponse Source # | |
Defined in Amazonka.CodeCommit.UpdatePullRequestStatus type Rep UpdatePullRequestStatusResponse = D1 ('MetaData "UpdatePullRequestStatusResponse" "Amazonka.CodeCommit.UpdatePullRequestStatus" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "UpdatePullRequestStatusResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "pullRequest") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PullRequest))) |
newUpdatePullRequestStatusResponse Source #
Create a value of UpdatePullRequestStatusResponse
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:UpdatePullRequestStatusResponse'
, updatePullRequestStatusResponse_httpStatus
- The response's http status code.
$sel:pullRequest:UpdatePullRequestStatusResponse'
, updatePullRequestStatusResponse_pullRequest
- Information about the pull request.
Response Lenses
updatePullRequestStatusResponse_httpStatus :: Lens' UpdatePullRequestStatusResponse Int Source #
The response's http status code.
updatePullRequestStatusResponse_pullRequest :: Lens' UpdatePullRequestStatusResponse PullRequest Source #
Information about the pull request.