Skip to content

Creates a branch in a specified source repository in Amazon CodeCatalyst

Description

Creates a branch in a specified source repository in Amazon CodeCatalyst.

This API only creates a branch in a source repository hosted in Amazon CodeCatalyst. You cannot use this API to create a branch in a linked repository.

Usage

codecatalyst_create_source_repository_branch(spaceName, projectName,
  sourceRepositoryName, name, headCommitId)

Arguments

  • spaceName

    [required] The name of the space.

  • projectName

    [required] The name of the project in the space.

  • sourceRepositoryName

    [required] The name of the repository where you want to create a branch.

  • name

    [required] The name for the branch you're creating.

  • headCommitId

    The commit ID in an existing branch from which you want to create the new branch.

Value

A list with the following syntax:

list(
  ref = "string",
  name = "string",
  lastUpdatedTime = as.POSIXct(
    "2015-01-01"
  ),
  headCommitId = "string"
)

Request syntax

svc$create_source_repository_branch(
  spaceName = "string",
  projectName = "string",
  sourceRepositoryName = "string",
  name = "string",
  headCommitId = "string"
)