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.CreatePullRequest

Contents

Description

Creates a pull request in the specified repository.

Synopsis

Creating a Request

createPullRequest Source #

Creates a value of CreatePullRequest with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • cprClientRequestToken - A unique, client-generated idempotency token that when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request will return information about the initial request that used that token.
  • cprDescription - A description of the pull request.
  • cprTitle - The title of the pull request. This title will be used to identify the pull request to other users in the repository.
  • cprTargets - The targets for the pull request, including the source of the code to be reviewed (the source branch), and the destination where the creator of the pull request intends the code to be merged after the pull request is closed (the destination branch).

data CreatePullRequest Source #

See: createPullRequest smart constructor.

Instances

Eq CreatePullRequest Source # 
Data CreatePullRequest Source # 

Methods

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

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

toConstr :: CreatePullRequest -> Constr #

dataTypeOf :: CreatePullRequest -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreatePullRequest Source # 
Show CreatePullRequest Source # 
Generic CreatePullRequest Source # 
Hashable CreatePullRequest Source # 
ToJSON CreatePullRequest Source # 
NFData CreatePullRequest Source # 

Methods

rnf :: CreatePullRequest -> () #

AWSRequest CreatePullRequest Source # 
ToHeaders CreatePullRequest Source # 
ToPath CreatePullRequest Source # 
ToQuery CreatePullRequest Source # 
type Rep CreatePullRequest Source # 
type Rep CreatePullRequest = D1 * (MetaData "CreatePullRequest" "Network.AWS.CodeCommit.CreatePullRequest" "amazonka-codecommit-1.6.0-Ck6cSFWU4LEJwYMtJc4ier" False) (C1 * (MetaCons "CreatePullRequest'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_cprClientRequestToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_cprDescription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_cprTitle") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_cprTargets") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * [Target])))))
type Rs CreatePullRequest Source # 

Request Lenses

cprClientRequestToken :: Lens' CreatePullRequest (Maybe Text) Source #

A unique, client-generated idempotency token that when provided in a request, ensures the request cannot be repeated with a changed parameter. If a request is received with the same parameters and a token is included, the request will return information about the initial request that used that token.

cprDescription :: Lens' CreatePullRequest (Maybe Text) Source #

A description of the pull request.

cprTitle :: Lens' CreatePullRequest Text Source #

The title of the pull request. This title will be used to identify the pull request to other users in the repository.

cprTargets :: Lens' CreatePullRequest [Target] Source #

The targets for the pull request, including the source of the code to be reviewed (the source branch), and the destination where the creator of the pull request intends the code to be merged after the pull request is closed (the destination branch).

Destructuring the Response

createPullRequestResponse Source #

Creates a value of CreatePullRequestResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data CreatePullRequestResponse Source #

See: createPullRequestResponse smart constructor.

Instances

Eq CreatePullRequestResponse Source # 
Data CreatePullRequestResponse Source # 

Methods

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

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

toConstr :: CreatePullRequestResponse -> Constr #

dataTypeOf :: CreatePullRequestResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read CreatePullRequestResponse Source # 
Show CreatePullRequestResponse Source # 
Generic CreatePullRequestResponse Source # 
NFData CreatePullRequestResponse Source # 
type Rep CreatePullRequestResponse Source # 
type Rep CreatePullRequestResponse = D1 * (MetaData "CreatePullRequestResponse" "Network.AWS.CodeCommit.CreatePullRequest" "amazonka-codecommit-1.6.0-Ck6cSFWU4LEJwYMtJc4ier" False) (C1 * (MetaCons "CreatePullRequestResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_cprrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)) (S1 * (MetaSel (Just Symbol "_cprrsPullRequest") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * PullRequest))))

Response Lenses

cprrsPullRequest :: Lens' CreatePullRequestResponse PullRequest Source #

Information about the newly created pull request.