amazonka-codecommit-1.6.0: Amazon CodeCommit SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CodeCommit.MergePullRequestByFastForward

Contents

Description

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

Creating a Request

mergePullRequestByFastForward #

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, use ListPullRequests .
  • mprbffRepositoryName - The name of the repository where the pull request was created.

data MergePullRequestByFastForward #

See: mergePullRequestByFastForward smart constructor.

Instances

Eq MergePullRequestByFastForward # 
Data MergePullRequestByFastForward # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MergePullRequestByFastForward -> c MergePullRequestByFastForward #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MergePullRequestByFastForward #

toConstr :: MergePullRequestByFastForward -> Constr #

dataTypeOf :: MergePullRequestByFastForward -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c MergePullRequestByFastForward) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MergePullRequestByFastForward) #

gmapT :: (forall b. Data b => b -> b) -> MergePullRequestByFastForward -> MergePullRequestByFastForward #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MergePullRequestByFastForward -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MergePullRequestByFastForward -> r #

gmapQ :: (forall d. Data d => d -> u) -> MergePullRequestByFastForward -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> MergePullRequestByFastForward -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> MergePullRequestByFastForward -> m MergePullRequestByFastForward #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MergePullRequestByFastForward -> m MergePullRequestByFastForward #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MergePullRequestByFastForward -> m MergePullRequestByFastForward #

Read MergePullRequestByFastForward # 
Show MergePullRequestByFastForward # 
Generic MergePullRequestByFastForward # 
Hashable MergePullRequestByFastForward # 
ToJSON MergePullRequestByFastForward # 
NFData MergePullRequestByFastForward # 
AWSRequest MergePullRequestByFastForward # 
ToHeaders MergePullRequestByFastForward # 
ToPath MergePullRequestByFastForward # 
ToQuery MergePullRequestByFastForward # 
type Rep MergePullRequestByFastForward # 
type Rep MergePullRequestByFastForward = D1 * (MetaData "MergePullRequestByFastForward" "Network.AWS.CodeCommit.MergePullRequestByFastForward" "amazonka-codecommit-1.6.0-DWhAPL2rvZuFmVENn91cJd" False) (C1 * (MetaCons "MergePullRequestByFastForward'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_mprbffSourceCommitId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_mprbffPullRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_mprbffRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)))))
type Rs MergePullRequestByFastForward # 

Request Lenses

mprbffSourceCommitId :: Lens' MergePullRequestByFastForward (Maybe Text) #

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 #

The system-generated ID of the pull request. To get this ID, use ListPullRequests .

mprbffRepositoryName :: Lens' MergePullRequestByFastForward Text #

The name of the repository where the pull request was created.

Destructuring the Response

mergePullRequestByFastForwardResponse #

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:

data MergePullRequestByFastForwardResponse #

Instances

Eq MergePullRequestByFastForwardResponse # 
Data MergePullRequestByFastForwardResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> MergePullRequestByFastForwardResponse -> c MergePullRequestByFastForwardResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c MergePullRequestByFastForwardResponse #

toConstr :: MergePullRequestByFastForwardResponse -> Constr #

dataTypeOf :: MergePullRequestByFastForwardResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c MergePullRequestByFastForwardResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c MergePullRequestByFastForwardResponse) #

gmapT :: (forall b. Data b => b -> b) -> MergePullRequestByFastForwardResponse -> MergePullRequestByFastForwardResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> MergePullRequestByFastForwardResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> MergePullRequestByFastForwardResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> MergePullRequestByFastForwardResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> MergePullRequestByFastForwardResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> MergePullRequestByFastForwardResponse -> m MergePullRequestByFastForwardResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> MergePullRequestByFastForwardResponse -> m MergePullRequestByFastForwardResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> MergePullRequestByFastForwardResponse -> m MergePullRequestByFastForwardResponse #

Read MergePullRequestByFastForwardResponse # 
Show MergePullRequestByFastForwardResponse # 
Generic MergePullRequestByFastForwardResponse # 
NFData MergePullRequestByFastForwardResponse # 
type Rep MergePullRequestByFastForwardResponse # 
type Rep MergePullRequestByFastForwardResponse = D1 * (MetaData "MergePullRequestByFastForwardResponse" "Network.AWS.CodeCommit.MergePullRequestByFastForward" "amazonka-codecommit-1.6.0-DWhAPL2rvZuFmVENn91cJd" False) (C1 * (MetaCons "MergePullRequestByFastForwardResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_mprbffrsPullRequest") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe PullRequest))) (S1 * (MetaSel (Just Symbol "_mprbffrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int))))

Response Lenses

mprbffrsPullRequest :: Lens' MergePullRequestByFastForwardResponse (Maybe PullRequest) #

Information about the specified pull request, including information about the merge.