| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CodeCommit.MergeBranchesBySquash
Description
Merges two branches using the squash merge strategy.
Synopsis
- data MergeBranchesBySquash = MergeBranchesBySquash' {
- authorName :: Maybe Text
- commitMessage :: Maybe Text
- conflictDetailLevel :: Maybe ConflictDetailLevelTypeEnum
- conflictResolution :: Maybe ConflictResolution
- conflictResolutionStrategy :: Maybe ConflictResolutionStrategyTypeEnum
- email :: Maybe Text
- keepEmptyFolders :: Maybe Bool
- targetBranch :: Maybe Text
- repositoryName :: Text
- sourceCommitSpecifier :: Text
- destinationCommitSpecifier :: Text
- newMergeBranchesBySquash :: Text -> Text -> Text -> MergeBranchesBySquash
- mergeBranchesBySquash_authorName :: Lens' MergeBranchesBySquash (Maybe Text)
- mergeBranchesBySquash_commitMessage :: Lens' MergeBranchesBySquash (Maybe Text)
- mergeBranchesBySquash_conflictDetailLevel :: Lens' MergeBranchesBySquash (Maybe ConflictDetailLevelTypeEnum)
- mergeBranchesBySquash_conflictResolution :: Lens' MergeBranchesBySquash (Maybe ConflictResolution)
- mergeBranchesBySquash_conflictResolutionStrategy :: Lens' MergeBranchesBySquash (Maybe ConflictResolutionStrategyTypeEnum)
- mergeBranchesBySquash_email :: Lens' MergeBranchesBySquash (Maybe Text)
- mergeBranchesBySquash_keepEmptyFolders :: Lens' MergeBranchesBySquash (Maybe Bool)
- mergeBranchesBySquash_targetBranch :: Lens' MergeBranchesBySquash (Maybe Text)
- mergeBranchesBySquash_repositoryName :: Lens' MergeBranchesBySquash Text
- mergeBranchesBySquash_sourceCommitSpecifier :: Lens' MergeBranchesBySquash Text
- mergeBranchesBySquash_destinationCommitSpecifier :: Lens' MergeBranchesBySquash Text
- data MergeBranchesBySquashResponse = MergeBranchesBySquashResponse' {}
- newMergeBranchesBySquashResponse :: Int -> MergeBranchesBySquashResponse
- mergeBranchesBySquashResponse_commitId :: Lens' MergeBranchesBySquashResponse (Maybe Text)
- mergeBranchesBySquashResponse_treeId :: Lens' MergeBranchesBySquashResponse (Maybe Text)
- mergeBranchesBySquashResponse_httpStatus :: Lens' MergeBranchesBySquashResponse Int
Creating a Request
data MergeBranchesBySquash Source #
See: newMergeBranchesBySquash smart constructor.
Constructors
| MergeBranchesBySquash' | |
Fields
| |
Instances
newMergeBranchesBySquash Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> MergeBranchesBySquash |
Create a value of MergeBranchesBySquash 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:MergeBranchesBySquash', mergeBranchesBySquash_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:MergeBranchesBySquash', mergeBranchesBySquash_commitMessage - The commit message for the merge.
$sel:conflictDetailLevel:MergeBranchesBySquash', mergeBranchesBySquash_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:MergeBranchesBySquash', mergeBranchesBySquash_conflictResolution - If AUTOMERGE is the conflict resolution strategy, a list of inputs to
use when resolving conflicts during a merge.
$sel:conflictResolutionStrategy:MergeBranchesBySquash', mergeBranchesBySquash_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.
MergeBranchesBySquash, mergeBranchesBySquash_email - The email address of the person merging the branches. This information
is used in the commit information for the merge.
$sel:keepEmptyFolders:MergeBranchesBySquash', mergeBranchesBySquash_keepEmptyFolders - If the commit contains deletions, whether to keep a folder or folder
structure if the changes leave the folders empty. If this is specified
as true, a .gitkeep file is created for empty folders. The default is
false.
$sel:targetBranch:MergeBranchesBySquash', mergeBranchesBySquash_targetBranch - The branch where the merge is applied.
MergeBranchesBySquash, mergeBranchesBySquash_repositoryName - The name of the repository where you want to merge two branches.
$sel:sourceCommitSpecifier:MergeBranchesBySquash', mergeBranchesBySquash_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:MergeBranchesBySquash', mergeBranchesBySquash_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
mergeBranchesBySquash_authorName :: Lens' MergeBranchesBySquash (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.
mergeBranchesBySquash_commitMessage :: Lens' MergeBranchesBySquash (Maybe Text) Source #
The commit message for the merge.
mergeBranchesBySquash_conflictDetailLevel :: Lens' MergeBranchesBySquash (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.
mergeBranchesBySquash_conflictResolution :: Lens' MergeBranchesBySquash (Maybe ConflictResolution) Source #
If AUTOMERGE is the conflict resolution strategy, a list of inputs to use when resolving conflicts during a merge.
mergeBranchesBySquash_conflictResolutionStrategy :: Lens' MergeBranchesBySquash (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.
mergeBranchesBySquash_email :: Lens' MergeBranchesBySquash (Maybe Text) Source #
The email address of the person merging the branches. This information is used in the commit information for the merge.
mergeBranchesBySquash_keepEmptyFolders :: Lens' MergeBranchesBySquash (Maybe Bool) Source #
If the commit contains deletions, whether to keep a folder or folder structure if the changes leave the folders empty. If this is specified as true, a .gitkeep file is created for empty folders. The default is false.
mergeBranchesBySquash_targetBranch :: Lens' MergeBranchesBySquash (Maybe Text) Source #
The branch where the merge is applied.
mergeBranchesBySquash_repositoryName :: Lens' MergeBranchesBySquash Text Source #
The name of the repository where you want to merge two branches.
mergeBranchesBySquash_sourceCommitSpecifier :: Lens' MergeBranchesBySquash 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).
mergeBranchesBySquash_destinationCommitSpecifier :: Lens' MergeBranchesBySquash 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 MergeBranchesBySquashResponse Source #
See: newMergeBranchesBySquashResponse smart constructor.
Constructors
| MergeBranchesBySquashResponse' | |
Instances
newMergeBranchesBySquashResponse Source #
Create a value of MergeBranchesBySquashResponse 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:
MergeBranchesBySquashResponse, mergeBranchesBySquashResponse_commitId - The commit ID of the merge in the destination or target branch.
MergeBranchesBySquashResponse, mergeBranchesBySquashResponse_treeId - The tree ID of the merge in the destination or target branch.
$sel:httpStatus:MergeBranchesBySquashResponse', mergeBranchesBySquashResponse_httpStatus - The response's http status code.
Response Lenses
mergeBranchesBySquashResponse_commitId :: Lens' MergeBranchesBySquashResponse (Maybe Text) Source #
The commit ID of the merge in the destination or target branch.
mergeBranchesBySquashResponse_treeId :: Lens' MergeBranchesBySquashResponse (Maybe Text) Source #
The tree ID of the merge in the destination or target branch.
mergeBranchesBySquashResponse_httpStatus :: Lens' MergeBranchesBySquashResponse Int Source #
The response's http status code.