Skip to content

Batch Get Commits

codecommit_batch_get_commits R Documentation

Returns information about the contents of one or more commits in a repository

Description

Returns information about the contents of one or more commits in a repository.

Usage

codecommit_batch_get_commits(commitIds, repositoryName)

Arguments

commitIds

[required] The full commit IDs of the commits to get information about.

You must supply the full SHA IDs of each commit. You cannot use shortened SHA IDs.

repositoryName

[required] The name of the repository that contains the commits.

Value

A list with the following syntax:

list(
  commits = list(
    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"
    )
  ),
  errors = list(
    list(
      commitId = "string",
      errorCode = "string",
      errorMessage = "string"
    )
  )
)

Request syntax

svc$batch_get_commits(
  commitIds = list(
    "string"
  ),
  repositoryName = "string"
)