Skip to content

Get Merge Commit

codecommit_get_merge_commit R Documentation

Returns information about a specified merge commit

Description

Returns information about a specified merge commit.

Usage

codecommit_get_merge_commit(repositoryName, sourceCommitSpecifier,
  destinationCommitSpecifier, conflictDetailLevel,
  conflictResolutionStrategy)

Arguments

repositoryName

[required] The name of the repository that contains the merge commit about which you want to get information.

sourceCommitSpecifier

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

destinationCommitSpecifier

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

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.

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.

Value

A list with the following syntax:

list(
  sourceCommitId = "string",
  destinationCommitId = "string",
  baseCommitId = "string",
  mergedCommitId = "string"
)

Request syntax

svc$get_merge_commit(
  repositoryName = "string",
  sourceCommitSpecifier = "string",
  destinationCommitSpecifier = "string",
  conflictDetailLevel = "FILE_LEVEL"|"LINE_LEVEL",
  conflictResolutionStrategy = "NONE"|"ACCEPT_SOURCE"|"ACCEPT_DESTINATION"|"AUTOMERGE"
)