amazonka-codecommit-2.0: Amazon CodeCommit SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CodeCommit.MergePullRequestBySquash

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

Synopsis

Creating a Request

data MergePullRequestBySquash Source #

See: newMergePullRequestBySquash smart constructor.

Constructors

MergePullRequestBySquash' 

Fields

  • authorName :: Maybe Text

    The name of the author who created the commit. This information is used as both the author and committer for the commit.

  • commitMessage :: Maybe Text

    The commit message to include in the commit information for the merge.

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

  • conflictResolution :: Maybe ConflictResolution

    If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during a merge.

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

  • email :: Maybe Text

    The email address of the person merging the branches. This information is used in the commit information for the merge.

  • keepEmptyFolders :: Maybe Bool

    If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If true, a .gitkeep file is created for empty folders. The default is false.

  • 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
ToJSON MergePullRequestBySquash Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestBySquash

ToHeaders MergePullRequestBySquash Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestBySquash

ToPath MergePullRequestBySquash Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestBySquash

ToQuery MergePullRequestBySquash Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestBySquash

AWSRequest MergePullRequestBySquash Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestBySquash

Generic MergePullRequestBySquash Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestBySquash

Associated Types

type Rep MergePullRequestBySquash :: Type -> Type #

Read MergePullRequestBySquash Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestBySquash

Show MergePullRequestBySquash Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestBySquash

NFData MergePullRequestBySquash Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestBySquash

Eq MergePullRequestBySquash Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestBySquash

Hashable MergePullRequestBySquash Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestBySquash

type AWSResponse MergePullRequestBySquash Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestBySquash

type Rep MergePullRequestBySquash Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestBySquash

type Rep MergePullRequestBySquash = D1 ('MetaData "MergePullRequestBySquash" "Amazonka.CodeCommit.MergePullRequestBySquash" "amazonka-codecommit-2.0-974g5LOhuTPG9HgUSx02zG" 'False) (C1 ('MetaCons "MergePullRequestBySquash'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "authorName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "commitMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "conflictDetailLevel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ConflictDetailLevelTypeEnum)) :*: (S1 ('MetaSel ('Just "conflictResolution") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ConflictResolution)) :*: S1 ('MetaSel ('Just "conflictResolutionStrategy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ConflictResolutionStrategyTypeEnum))))) :*: ((S1 ('MetaSel ('Just "email") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "keepEmptyFolders") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (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))))))

newMergePullRequestBySquash Source #

Create a value of MergePullRequestBySquash 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:authorName:MergePullRequestBySquash', mergePullRequestBySquash_authorName - The name of the author who created the commit. This information is used as both the author and committer for the commit.

$sel:commitMessage:MergePullRequestBySquash', mergePullRequestBySquash_commitMessage - The commit message to include in the commit information for the merge.

$sel:conflictDetailLevel:MergePullRequestBySquash', mergePullRequestBySquash_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:conflictResolution:MergePullRequestBySquash', mergePullRequestBySquash_conflictResolution - If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during a merge.

$sel:conflictResolutionStrategy:MergePullRequestBySquash', mergePullRequestBySquash_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.

MergePullRequestBySquash, mergePullRequestBySquash_email - The email address of the person merging the branches. This information is used in the commit information for the merge.

$sel:keepEmptyFolders:MergePullRequestBySquash', mergePullRequestBySquash_keepEmptyFolders - If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If true, a .gitkeep file is created for empty folders. The default is false.

MergePullRequestBySquash, mergePullRequestBySquash_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.

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

MergePullRequestBySquash, mergePullRequestBySquash_repositoryName - The name of the repository where the pull request was created.

Request Lenses

mergePullRequestBySquash_authorName :: Lens' MergePullRequestBySquash (Maybe Text) Source #

The name of the author who created the commit. This information is used as both the author and committer for the commit.

mergePullRequestBySquash_commitMessage :: Lens' MergePullRequestBySquash (Maybe Text) Source #

The commit message to include in the commit information for the merge.

mergePullRequestBySquash_conflictDetailLevel :: Lens' MergePullRequestBySquash (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.

mergePullRequestBySquash_conflictResolution :: Lens' MergePullRequestBySquash (Maybe ConflictResolution) Source #

If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during a merge.

mergePullRequestBySquash_conflictResolutionStrategy :: Lens' MergePullRequestBySquash (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.

mergePullRequestBySquash_email :: Lens' MergePullRequestBySquash (Maybe Text) Source #

The email address of the person merging the branches. This information is used in the commit information for the merge.

mergePullRequestBySquash_keepEmptyFolders :: Lens' MergePullRequestBySquash (Maybe Bool) Source #

If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If true, a .gitkeep file is created for empty folders. The default is false.

mergePullRequestBySquash_sourceCommitId :: Lens' MergePullRequestBySquash (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.

mergePullRequestBySquash_pullRequestId :: Lens' MergePullRequestBySquash Text Source #

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

mergePullRequestBySquash_repositoryName :: Lens' MergePullRequestBySquash Text Source #

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

Destructuring the Response

data MergePullRequestBySquashResponse Source #

See: newMergePullRequestBySquashResponse smart constructor.

Constructors

MergePullRequestBySquashResponse' 

Fields

Instances

Instances details
Generic MergePullRequestBySquashResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestBySquash

Associated Types

type Rep MergePullRequestBySquashResponse :: Type -> Type #

Read MergePullRequestBySquashResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestBySquash

Show MergePullRequestBySquashResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestBySquash

NFData MergePullRequestBySquashResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestBySquash

Eq MergePullRequestBySquashResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestBySquash

type Rep MergePullRequestBySquashResponse Source # 
Instance details

Defined in Amazonka.CodeCommit.MergePullRequestBySquash

type Rep MergePullRequestBySquashResponse = D1 ('MetaData "MergePullRequestBySquashResponse" "Amazonka.CodeCommit.MergePullRequestBySquash" "amazonka-codecommit-2.0-974g5LOhuTPG9HgUSx02zG" 'False) (C1 ('MetaCons "MergePullRequestBySquashResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "pullRequest") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe PullRequest)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newMergePullRequestBySquashResponse Source #

Create a value of MergePullRequestBySquashResponse 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:MergePullRequestBySquashResponse', mergePullRequestBySquashResponse_pullRequest - Undocumented member.

$sel:httpStatus:MergePullRequestBySquashResponse', mergePullRequestBySquashResponse_httpStatus - The response's http status code.

Response Lenses