CodeCommit.Client.get_merge_options(**kwargs)¶Returns information about the merge options available for merging two specified branches. For details about why a merge option is not available, use GetMergeConflicts or DescribeMergeConflicts.
See also: AWS API Documentation
Request Syntax
response = client.get_merge_options(
repositoryName='string',
sourceCommitSpecifier='string',
destinationCommitSpecifier='string',
conflictDetailLevel='FILE_LEVEL'|'LINE_LEVEL',
conflictResolutionStrategy='NONE'|'ACCEPT_SOURCE'|'ACCEPT_DESTINATION'|'AUTOMERGE'
)
[REQUIRED]
The name of the repository that contains the commits about which you want to get merge options.
[REQUIRED]
The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
[REQUIRED]
The branch, tag, HEAD, or other fully qualified reference used to identify a commit (for example, a branch name or a full commit ID).
dict
Response Syntax
{
'mergeOptions': [
'FAST_FORWARD_MERGE'|'SQUASH_MERGE'|'THREE_WAY_MERGE',
],
'sourceCommitId': 'string',
'destinationCommitId': 'string',
'baseCommitId': 'string'
}
Response Structure
(dict) --
mergeOptions (list) --
The merge option or strategy used to merge the code.
sourceCommitId (string) --
The commit ID of the source commit specifier that was used in the merge evaluation.
destinationCommitId (string) --
The commit ID of the destination commit specifier that was used in the merge evaluation.
baseCommitId (string) --
The commit ID of the merge base.
Exceptions
CodeCommit.Client.exceptions.RepositoryNameRequiredExceptionCodeCommit.Client.exceptions.InvalidRepositoryNameExceptionCodeCommit.Client.exceptions.RepositoryDoesNotExistExceptionCodeCommit.Client.exceptions.CommitRequiredExceptionCodeCommit.Client.exceptions.CommitDoesNotExistExceptionCodeCommit.Client.exceptions.InvalidCommitExceptionCodeCommit.Client.exceptions.TipsDivergenceExceededExceptionCodeCommit.Client.exceptions.InvalidConflictDetailLevelExceptionCodeCommit.Client.exceptions.InvalidConflictResolutionStrategyExceptionCodeCommit.Client.exceptions.MaximumFileContentToLoadExceededExceptionCodeCommit.Client.exceptions.MaximumItemsToCompareExceededExceptionCodeCommit.Client.exceptions.EncryptionIntegrityChecksFailedExceptionCodeCommit.Client.exceptions.EncryptionKeyAccessDeniedExceptionCodeCommit.Client.exceptions.EncryptionKeyDisabledExceptionCodeCommit.Client.exceptions.EncryptionKeyNotFoundExceptionCodeCommit.Client.exceptions.EncryptionKeyUnavailableException