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 |
Closes a pull request and 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 option.
Synopsis
- mergePullRequestByFastForward :: Text -> Text -> MergePullRequestByFastForward
- data MergePullRequestByFastForward
- mprbffSourceCommitId :: Lens' MergePullRequestByFastForward (Maybe Text)
- mprbffPullRequestId :: Lens' MergePullRequestByFastForward Text
- mprbffRepositoryName :: Lens' MergePullRequestByFastForward Text
- mergePullRequestByFastForwardResponse :: Int -> MergePullRequestByFastForwardResponse
- data MergePullRequestByFastForwardResponse
- mprbffrsPullRequest :: Lens' MergePullRequestByFastForwardResponse (Maybe PullRequest)
- mprbffrsResponseStatus :: Lens' MergePullRequestByFastForwardResponse Int
Creating a Request
mergePullRequestByFastForward Source #
Creates a value of MergePullRequestByFastForward
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mprbffSourceCommitId
- 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.mprbffPullRequestId
- The system-generated ID of the pull request. To get this ID, useListPullRequests
.mprbffRepositoryName
- The name of the repository where the pull request was created.
data MergePullRequestByFastForward Source #
See: mergePullRequestByFastForward
smart constructor.
Instances
Request Lenses
mprbffSourceCommitId :: 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.
mprbffPullRequestId :: Lens' MergePullRequestByFastForward Text Source #
The system-generated ID of the pull request. To get this ID, use ListPullRequests
.
mprbffRepositoryName :: Lens' MergePullRequestByFastForward Text Source #
The name of the repository where the pull request was created.
Destructuring the Response
mergePullRequestByFastForwardResponse Source #
Creates a value of MergePullRequestByFastForwardResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
mprbffrsPullRequest
- Information about the specified pull request, including information about the merge.mprbffrsResponseStatus
- -- | The response status code.
data MergePullRequestByFastForwardResponse Source #
See: mergePullRequestByFastForwardResponse
smart constructor.
Instances
Response Lenses
mprbffrsPullRequest :: Lens' MergePullRequestByFastForwardResponse (Maybe PullRequest) Source #
Information about the specified pull request, including information about the merge.
mprbffrsResponseStatus :: Lens' MergePullRequestByFastForwardResponse Int Source #
- - | The response status code.