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

Amazonka.CodeCommit.MergePullRequestByFastForward

Description

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 strategy. If the merge is successful, it closes the pull request.

Synopsis

Creating a Request

data MergePullRequestByFastForward Source #

See: newMergePullRequestByFastForward smart constructor.

Constructors

MergePullRequestByFastForward' 

Fields

  • sourceCommitId :: 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.

  • pullRequestId :: Text

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

  • repositoryName :: Text

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

Instances

Instances details
Eq MergePullRequestByFastForward Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestByFastForward

Read MergePullRequestByFastForward Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestByFastForward

Show MergePullRequestByFastForward Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestByFastForward

Generic MergePullRequestByFastForward Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestByFastForward

Associated Types

type Rep MergePullRequestByFastForward :: Type -> Type #

NFData MergePullRequestByFastForward Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestByFastForward

Hashable MergePullRequestByFastForward Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestByFastForward

ToJSON MergePullRequestByFastForward Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestByFastForward

AWSRequest MergePullRequestByFastForward Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestByFastForward

ToHeaders MergePullRequestByFastForward Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestByFastForward

ToPath MergePullRequestByFastForward Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestByFastForward

ToQuery MergePullRequestByFastForward Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestByFastForward

type Rep MergePullRequestByFastForward Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestByFastForward

type Rep MergePullRequestByFastForward = D1 ('MetaData "MergePullRequestByFastForward" "Amazonka.CodeCommit.MergePullRequestByFastForward" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "MergePullRequestByFastForward'" 'PrefixI 'True) (S1 ('MetaSel ('Just "sourceCommitId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "pullRequestId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse MergePullRequestByFastForward Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestByFastForward

newMergePullRequestByFastForward Source #

Create a value of MergePullRequestByFastForward with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:sourceCommitId:MergePullRequestByFastForward', mergePullRequestByFastForward_sourceCommitId - 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.

$sel:pullRequestId:MergePullRequestByFastForward', mergePullRequestByFastForward_pullRequestId - The system-generated ID of the pull request. To get this ID, use ListPullRequests.

$sel:repositoryName:MergePullRequestByFastForward', mergePullRequestByFastForward_repositoryName - The name of the repository where the pull request was created.

Request Lenses

mergePullRequestByFastForward_sourceCommitId :: 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.

mergePullRequestByFastForward_pullRequestId :: Lens' MergePullRequestByFastForward Text Source #

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

mergePullRequestByFastForward_repositoryName :: Lens' MergePullRequestByFastForward Text Source #

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

Destructuring the Response

data MergePullRequestByFastForwardResponse Source #

Constructors

MergePullRequestByFastForwardResponse' 

Fields

Instances

Instances details
Eq MergePullRequestByFastForwardResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestByFastForward

Read MergePullRequestByFastForwardResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestByFastForward

Show MergePullRequestByFastForwardResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestByFastForward

Generic MergePullRequestByFastForwardResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestByFastForward

NFData MergePullRequestByFastForwardResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestByFastForward

type Rep MergePullRequestByFastForwardResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestByFastForward

type Rep MergePullRequestByFastForwardResponse = D1 ('MetaData "MergePullRequestByFastForwardResponse" "Amazonka.CodeCommit.MergePullRequestByFastForward" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "MergePullRequestByFastForwardResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "pullRequest") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PullRequest)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newMergePullRequestByFastForwardResponse Source #

Create a value of MergePullRequestByFastForwardResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:pullRequest:MergePullRequestByFastForwardResponse', mergePullRequestByFastForwardResponse_pullRequest - Information about the specified pull request, including the merge.

$sel:httpStatus:MergePullRequestByFastForwardResponse', mergePullRequestByFastForwardResponse_httpStatus - The response's http status code.

Response Lenses

mergePullRequestByFastForwardResponse_pullRequest :: Lens' MergePullRequestByFastForwardResponse (Maybe PullRequest) Source #

Information about the specified pull request, including the merge.