v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1477523442.5 KB

Returns information about merge conflicts between the before and after commit IDs for a pull request in a repository.

post/#X-Amz-Target=CodeCommit_20150413.GetMergeConflicts

Query parameters

maxConflictFilesstring

Pagination limit

nextTokenstring

Pagination token

Headers

X-Amz-Target'CodeCommit_20150413.GetMergeConflicts' required

Request body

repositoryNamestring required

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

destinationCommitSpecifierstring 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).

sourceCommitSpecifierstring 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).

mergeOption'FAST_FORWARD_MERGE' | 'SQUASH_MERGE' | 'THREE_WAY_MERGE' required

The merge option or strategy you want to use to merge the code.

conflictDetailLevel'FILE_LEVEL' | 'LINE_LEVEL'

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.

maxConflictFilesinteger

The maximum number of files to include in the output.

conflictResolutionStrategy'NONE' | 'ACCEPT_SOURCE' | 'ACCEPT_DESTINATION' | 'AUTOMERGE'

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.

nextTokenstring

An enumeration token that, when provided in a request, returns the next batch of the results.

Response

Success

mergeableboolean required

A Boolean value that indicates whether the code is mergeable by the specified merge option.

destinationCommitIdstring required

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

sourceCommitIdstring required

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

baseCommitIdstring

The commit ID of the merge base.

nextTokenstring

An enumeration token that can be used in a request to return the next batch of the results.