get_merge_commit(**kwargs)¶Returns information about a specified merge commit.
See also: AWS API Documentation
Request Syntax
response = client.get_merge_commit(
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 merge commit about which you want to get information.
[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
{
'sourceCommitId': 'string',
'destinationCommitId': 'string',
'baseCommitId': 'string',
'mergedCommitId': 'string'
}
Response Structure
(dict) --
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.
mergedCommitId (string) --
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.
Exceptions
CodeCommit.Client.exceptions.RepositoryNameRequiredExceptionCodeCommit.Client.exceptions.InvalidRepositoryNameExceptionCodeCommit.Client.exceptions.RepositoryDoesNotExistExceptionCodeCommit.Client.exceptions.CommitRequiredExceptionCodeCommit.Client.exceptions.InvalidCommitExceptionCodeCommit.Client.exceptions.CommitDoesNotExistExceptionCodeCommit.Client.exceptions.InvalidConflictDetailLevelExceptionCodeCommit.Client.exceptions.InvalidConflictResolutionStrategyExceptionCodeCommit.Client.exceptions.EncryptionIntegrityChecksFailedExceptionCodeCommit.Client.exceptions.EncryptionKeyAccessDeniedExceptionCodeCommit.Client.exceptions.EncryptionKeyDisabledExceptionCodeCommit.Client.exceptions.EncryptionKeyNotFoundExceptionCodeCommit.Client.exceptions.EncryptionKeyUnavailableException