amazonka-codecommit-1.6.1: 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 # 
Instance details

Defined in Network.AWS.CodeCommit.MergePullRequestByFastForward

Data MergePullRequestByFastForward Source # 
Instance details

Defined in Network.AWS.CodeCommit.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 Source # 
Instance details

Defined in Network.AWS.CodeCommit.MergePullRequestByFastForward

Show MergePullRequestByFastForward Source # 
Instance details

Defined in Network.AWS.CodeCommit.MergePullRequestByFastForward

Generic MergePullRequestByFastForward Source # 
Instance details

Defined in Network.AWS.CodeCommit.MergePullRequestByFastForward

Associated Types

type Rep MergePullRequestByFastForward :: Type -> Type #

Hashable MergePullRequestByFastForward Source # 
Instance details

Defined in Network.AWS.CodeCommit.MergePullRequestByFastForward

ToJSON MergePullRequestByFastForward Source # 
Instance details

Defined in Network.AWS.CodeCommit.MergePullRequestByFastForward

AWSRequest MergePullRequestByFastForward Source # 
Instance details

Defined in Network.AWS.CodeCommit.MergePullRequestByFastForward

Associated Types

type Rs MergePullRequestByFastForward :: Type #

ToHeaders MergePullRequestByFastForward Source # 
Instance details

Defined in Network.AWS.CodeCommit.MergePullRequestByFastForward

ToPath MergePullRequestByFastForward Source # 
Instance details

Defined in Network.AWS.CodeCommit.MergePullRequestByFastForward

ToQuery MergePullRequestByFastForward Source # 
Instance details

Defined in Network.AWS.CodeCommit.MergePullRequestByFastForward

NFData MergePullRequestByFastForward Source # 
Instance details

Defined in Network.AWS.CodeCommit.MergePullRequestByFastForward

type Rep MergePullRequestByFastForward Source # 
Instance details

Defined in Network.AWS.CodeCommit.MergePullRequestByFastForward

type Rep MergePullRequestByFastForward = D1 (MetaData "MergePullRequestByFastForward" "Network.AWS.CodeCommit.MergePullRequestByFastForward" "amazonka-codecommit-1.6.1-5oFbBVW9gHvCvarYcjcXps" False) (C1 (MetaCons "MergePullRequestByFastForward'" PrefixI True) (S1 (MetaSel (Just "_mprbffSourceCommitId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_mprbffPullRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_mprbffRepositoryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs MergePullRequestByFastForward Source # 
Instance details

Defined in Network.AWS.CodeCommit.MergePullRequestByFastForward

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 # 
Instance details

Defined in Network.AWS.CodeCommit.MergePullRequestByFastForward

Data MergePullRequestByFastForwardResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.MergePullRequestByFastForward

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 # 
Instance details

Defined in Network.AWS.CodeCommit.MergePullRequestByFastForward

Show MergePullRequestByFastForwardResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.MergePullRequestByFastForward

Generic MergePullRequestByFastForwardResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.MergePullRequestByFastForward

NFData MergePullRequestByFastForwardResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.MergePullRequestByFastForward

type Rep MergePullRequestByFastForwardResponse Source # 
Instance details

Defined in Network.AWS.CodeCommit.MergePullRequestByFastForward

type Rep MergePullRequestByFastForwardResponse = D1 (MetaData "MergePullRequestByFastForwardResponse" "Network.AWS.CodeCommit.MergePullRequestByFastForward" "amazonka-codecommit-1.6.1-5oFbBVW9gHvCvarYcjcXps" False) (C1 (MetaCons "MergePullRequestByFastForwardResponse'" PrefixI True) (S1 (MetaSel (Just "_mprbffrsPullRequest") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe PullRequest)) :*: S1 (MetaSel (Just "_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.