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

Description

Returns information about a specified merge commit.

Synopsis

Creating a Request

data GetMergeCommit Source #

See: newGetMergeCommit smart constructor.

Constructors

GetMergeCommit' 

Fields

  • conflictDetailLevel :: Maybe ConflictDetailLevelTypeEnum

    The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.

  • conflictResolutionStrategy :: Maybe ConflictResolutionStrategyTypeEnum

    Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.

  • repositoryName :: Text

    The name of the repository that contains the merge commit about which you want to get information.

  • sourceCommitSpecifier :: Text

    The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).

  • destinationCommitSpecifier :: Text

    The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).

Instances

Instances details
Eq GetMergeCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeCommit

Read GetMergeCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeCommit

Show GetMergeCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeCommit

Generic GetMergeCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeCommit

Associated Types

type Rep GetMergeCommit :: Type -> Type #

NFData GetMergeCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeCommit

Methods

rnf :: GetMergeCommit -> () #

Hashable GetMergeCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeCommit

ToJSON GetMergeCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeCommit

AWSRequest GetMergeCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeCommit

Associated Types

type AWSResponse GetMergeCommit #

ToHeaders GetMergeCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeCommit

ToPath GetMergeCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeCommit

ToQuery GetMergeCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeCommit

type Rep GetMergeCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeCommit

type Rep GetMergeCommit = D1 ('MetaData "GetMergeCommit" "Amazonka.CodeCommit.GetMergeCommit" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "GetMergeCommit'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "conflictDetailLevel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ConflictDetailLevelTypeEnum)) :*: S1 ('MetaSel ('Just "conflictResolutionStrategy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ConflictResolutionStrategyTypeEnum))) :*: (S1 ('MetaSel ('Just "repositoryName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "sourceCommitSpecifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "destinationCommitSpecifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse GetMergeCommit Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeCommit

newGetMergeCommit Source #

Create a value of GetMergeCommit 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:conflictDetailLevel:GetMergeCommit', getMergeCommit_conflictDetailLevel - The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.

$sel:conflictResolutionStrategy:GetMergeCommit', getMergeCommit_conflictResolutionStrategy - Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.

$sel:repositoryName:GetMergeCommit', getMergeCommit_repositoryName - The name of the repository that contains the merge commit about which you want to get information.

$sel:sourceCommitSpecifier:GetMergeCommit', getMergeCommit_sourceCommitSpecifier - The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).

$sel:destinationCommitSpecifier:GetMergeCommit', getMergeCommit_destinationCommitSpecifier - The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).

Request Lenses

getMergeCommit_conflictDetailLevel :: Lens' GetMergeCommit (Maybe ConflictDetailLevelTypeEnum) Source #

The level of conflict detail to use. If unspecified, the default FILE_LEVEL is used, which returns a not-mergeable result if the same file has differences in both branches. If LINE_LEVEL is specified, a conflict is considered not mergeable if the same file in both branches has differences on the same line.

getMergeCommit_conflictResolutionStrategy :: Lens' GetMergeCommit (Maybe ConflictResolutionStrategyTypeEnum) Source #

Specifies which branch to use when resolving conflicts, or whether to attempt automatically merging two versions of a file. The default is NONE, which requires any conflicts to be resolved manually before the merge operation is successful.

getMergeCommit_repositoryName :: Lens' GetMergeCommit Text Source #

The name of the repository that contains the merge commit about which you want to get information.

getMergeCommit_sourceCommitSpecifier :: Lens' GetMergeCommit Text Source #

The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).

getMergeCommit_destinationCommitSpecifier :: Lens' GetMergeCommit Text Source #

The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).

Destructuring the Response

data GetMergeCommitResponse Source #

See: newGetMergeCommitResponse smart constructor.

Constructors

GetMergeCommitResponse' 

Fields

  • mergedCommitId :: Maybe Text

    The commit ID for the merge commit created when the source branch was merged into the destination branch. If the fast-forward merge strategy was used, there is no merge commit.

  • destinationCommitId :: Maybe Text

    The commit ID of the destination commit specifier that was used in the merge evaluation.

  • baseCommitId :: Maybe Text

    The commit ID of the merge base.

  • sourceCommitId :: Maybe Text

    The commit ID of the source commit specifier that was used in the merge evaluation.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq GetMergeCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeCommit

Read GetMergeCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeCommit

Show GetMergeCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeCommit

Generic GetMergeCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeCommit

Associated Types

type Rep GetMergeCommitResponse :: Type -> Type #

NFData GetMergeCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeCommit

Methods

rnf :: GetMergeCommitResponse -> () #

type Rep GetMergeCommitResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.GetMergeCommit

type Rep GetMergeCommitResponse = D1 ('MetaData "GetMergeCommitResponse" "Amazonka.CodeCommit.GetMergeCommit" "libZSservicesZSamazonka-codecommitZSamazonka-codecommit" 'False) (C1 ('MetaCons "GetMergeCommitResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "mergedCommitId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "destinationCommitId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "baseCommitId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "sourceCommitId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newGetMergeCommitResponse Source #

Create a value of GetMergeCommitResponse 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:mergedCommitId:GetMergeCommitResponse', getMergeCommitResponse_mergedCommitId - The commit ID for the merge commit created when the source branch was merged into the destination branch. If the fast-forward merge strategy was used, there is no merge commit.

$sel:destinationCommitId:GetMergeCommitResponse', getMergeCommitResponse_destinationCommitId - The commit ID of the destination commit specifier that was used in the merge evaluation.

$sel:baseCommitId:GetMergeCommitResponse', getMergeCommitResponse_baseCommitId - The commit ID of the merge base.

$sel:sourceCommitId:GetMergeCommitResponse', getMergeCommitResponse_sourceCommitId - The commit ID of the source commit specifier that was used in the merge evaluation.

$sel:httpStatus:GetMergeCommitResponse', getMergeCommitResponse_httpStatus - The response's http status code.

Response Lenses

getMergeCommitResponse_mergedCommitId :: Lens' GetMergeCommitResponse (Maybe Text) Source #

The commit ID for the merge commit created when the source branch was merged into the destination branch. If the fast-forward merge strategy was used, there is no merge commit.

getMergeCommitResponse_destinationCommitId :: Lens' GetMergeCommitResponse (Maybe Text) Source #

The commit ID of the destination commit specifier that was used in the merge evaluation.

getMergeCommitResponse_sourceCommitId :: Lens' GetMergeCommitResponse (Maybe Text) Source #

The commit ID of the source commit specifier that was used in the merge evaluation.