Skip to main content

merge_conflicts

Creates, updates, deletes, gets or lists a merge_conflicts resource.

Overview

Namemerge_conflicts
TypeResource
Idaws.codecommit.merge_conflicts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
base_commit_idstringThe commit ID of the merge base.
conflict_metadataobjectContains metadata about the conflicts found in the merge.
destination_commit_idstringThe commit ID of the destination commit specifier that was used in the merge evaluation.
merge_hunksarrayA list of merge hunks of the differences between the files or lines.
next_tokenstringAn enumeration token that can be used in a request to return the next batch of the results.
source_commit_idstringThe commit ID of the source commit specifier that was used in the merge evaluation.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_merge_conflictsselectregionReturns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy. If the merge option for the attempted merge is specified as FAST_FORWARD_MERGE, an exception is thrown.
get_merge_conflictsselectregionReturns information about merge conflicts between the before and after commit IDs for a pull request in a repository.
batch_describe_merge_conflictsexecregion, repositoryName, destinationCommitSpecifier, sourceCommitSpecifier, mergeOptionReturns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy. If the merge option for the attempted merge is specified as FAST_FORWARD_MERGE, an exception is thrown.

SELECT
base_commit_id,
conflict_metadata,
destination_commit_id,
merge_hunks,
next_token,
source_commit_id
FROM aws.codecommit.merge_conflicts
WHERE region = '{{ region }}' -- required
;

Lifecycle Methods

Returns information about one or more merge conflicts in the attempted merge of two commit specifiers using the squash or three-way merge strategy.

EXEC aws.codecommit.merge_conflicts.batch_describe_merge_conflicts
@region='{{ region }}' --required
@@json=
'{
"repositoryName": "{{ repositoryName }}",
"destinationCommitSpecifier": "{{ destinationCommitSpecifier }}",
"sourceCommitSpecifier": "{{ sourceCommitSpecifier }}",
"mergeOption": "{{ mergeOption }}",
"maxMergeHunks": {{ maxMergeHunks }},
"maxConflictFiles": {{ maxConflictFiles }},
"filePaths": "{{ filePaths }}",
"conflictDetailLevel": "{{ conflictDetailLevel }}",
"conflictResolutionStrategy": "{{ conflictResolutionStrategy }}",
"nextToken": "{{ nextToken }}"
}'
;