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

data MergePullRequestByFastForward Source #

See: mergePullRequestByFastForward smart constructor.

Instances

Eq MergePullRequestByFastForward Source # 
Data MergePullRequestByFastForward Source # 

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 Source # 
Show MergePullRequestByFastForward Source # 
Generic MergePullRequestByFastForward Source # 
Hashable MergePullRequestByFastForward Source # 
ToJSON MergePullRequestByFastForward Source # 
NFData MergePullRequestByFastForward Source # 
AWSRequest MergePullRequestByFastForward Source # 
ToHeaders MergePullRequestByFastForward Source # 
ToPath MergePullRequestByFastForward Source # 
ToQuery MergePullRequestByFastForward Source # 
type Rep MergePullRequestByFastForward Source # 
type Rep MergePullRequestByFastForward = D1 * (MetaData "MergePullRequestByFastForward" "Network.AWS.CodeCommit.MergePullRequestByFastForward" "amazonka-codecommit-1.6.0-Ck6cSFWU4LEJwYMtJc4ier" 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 Source # 

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:

data MergePullRequestByFastForwardResponse Source #

Instances

Eq MergePullRequestByFastForwardResponse Source # 
Data MergePullRequestByFastForwardResponse Source # 

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 Source # 
Show MergePullRequestByFastForwardResponse Source # 
Generic MergePullRequestByFastForwardResponse Source # 
NFData MergePullRequestByFastForwardResponse Source # 
type Rep MergePullRequestByFastForwardResponse Source # 
type Rep MergePullRequestByFastForwardResponse = D1 * (MetaData "MergePullRequestByFastForwardResponse" "Network.AWS.CodeCommit.MergePullRequestByFastForward" "amazonka-codecommit-1.6.0-Ck6cSFWU4LEJwYMtJc4ier" 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) Source #

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