Skip to content

Get Commit

codecommit_get_commit R Documentation

Returns information about a commit, including commit message and committer information

Description

Returns information about a commit, including commit message and committer information.

Usage

codecommit_get_commit(repositoryName, commitId)

Arguments

repositoryName

[required] The name of the repository to which the commit was made.

commitId

[required] The commit ID. Commit IDs are the full SHA ID of the commit.

Value

A list with the following syntax:

list(
  commit = list(
    commitId = "string",
    treeId = "string",
    parents = list(
      "string"
    ),
    message = "string",
    author = list(
      name = "string",
      email = "string",
      date = "string"
    ),
    committer = list(
      name = "string",
      email = "string",
      date = "string"
    ),
    additionalData = "string"
  )
)

Request syntax

svc$get_commit(
  repositoryName = "string",
  commitId = "string"
)