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 |
Attempts to merge the source commit of a pull request into the specified destination branch for that pull request at the specified commit using the fast-forward merge strategy. If the merge is successful, it closes the pull request.
Synopsis
- data MergePullRequestByFastForward = MergePullRequestByFastForward' {}
- newMergePullRequestByFastForward :: Text -> Text -> MergePullRequestByFastForward
- mergePullRequestByFastForward_sourceCommitId :: Lens' MergePullRequestByFastForward (Maybe Text)
- mergePullRequestByFastForward_pullRequestId :: Lens' MergePullRequestByFastForward Text
- mergePullRequestByFastForward_repositoryName :: Lens' MergePullRequestByFastForward Text
- data MergePullRequestByFastForwardResponse = MergePullRequestByFastForwardResponse' {}
- newMergePullRequestByFastForwardResponse :: Int -> MergePullRequestByFastForwardResponse
- mergePullRequestByFastForwardResponse_pullRequest :: Lens' MergePullRequestByFastForwardResponse (Maybe PullRequest)
- mergePullRequestByFastForwardResponse_httpStatus :: Lens' MergePullRequestByFastForwardResponse Int
Creating a Request
data MergePullRequestByFastForward Source #
See: newMergePullRequestByFastForward
smart constructor.
MergePullRequestByFastForward' | |
|
Instances
newMergePullRequestByFastForward Source #
Create a value of MergePullRequestByFastForward
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:sourceCommitId:MergePullRequestByFastForward'
, mergePullRequestByFastForward_sourceCommitId
- The full commit ID of the original or updated commit in the pull request
source branch. Pass this value if you want an exception thrown if the
current commit ID of the tip of the source branch does not match this
commit ID.
$sel:pullRequestId:MergePullRequestByFastForward'
, mergePullRequestByFastForward_pullRequestId
- The system-generated ID of the pull request. To get this ID, use
ListPullRequests.
$sel:repositoryName:MergePullRequestByFastForward'
, mergePullRequestByFastForward_repositoryName
- The name of the repository where the pull request was created.
Request Lenses
mergePullRequestByFastForward_sourceCommitId :: Lens' MergePullRequestByFastForward (Maybe Text) Source #
The full commit ID of the original or updated commit in the pull request source branch. Pass this value if you want an exception thrown if the current commit ID of the tip of the source branch does not match this commit ID.
mergePullRequestByFastForward_pullRequestId :: Lens' MergePullRequestByFastForward Text Source #
The system-generated ID of the pull request. To get this ID, use ListPullRequests.
mergePullRequestByFastForward_repositoryName :: Lens' MergePullRequestByFastForward Text Source #
The name of the repository where the pull request was created.
Destructuring the Response
data MergePullRequestByFastForwardResponse Source #
See: newMergePullRequestByFastForwardResponse
smart constructor.
MergePullRequestByFastForwardResponse' | |
|
Instances
newMergePullRequestByFastForwardResponse Source #
Create a value of MergePullRequestByFastForwardResponse
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:pullRequest:MergePullRequestByFastForwardResponse'
, mergePullRequestByFastForwardResponse_pullRequest
- Information about the specified pull request, including the merge.
$sel:httpStatus:MergePullRequestByFastForwardResponse'
, mergePullRequestByFastForwardResponse_httpStatus
- The response's http status code.
Response Lenses
mergePullRequestByFastForwardResponse_pullRequest :: Lens' MergePullRequestByFastForwardResponse (Maybe PullRequest) Source #
Information about the specified pull request, including the merge.
mergePullRequestByFastForwardResponse_httpStatus :: Lens' MergePullRequestByFastForwardResponse Int Source #
The response's http status code.