Skip to content

/AWS1/CL_CAT=>CREATESOURCEREPOSITORYBRANCH()

About CreateSourceRepositoryBranch

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.

Method Signature

IMPORTING

Required arguments:

IV_SPACENAME TYPE /AWS1/CATNAMESTRING /AWS1/CATNAMESTRING

The name of the space.

IV_PROJECTNAME TYPE /AWS1/CATNAMESTRING /AWS1/CATNAMESTRING

The name of the project in the space.

IV_SOURCEREPOSITORYNAME TYPE /AWS1/CATSRCREPOSITORYNAMESTR /AWS1/CATSRCREPOSITORYNAMESTR

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

IV_NAME TYPE /AWS1/CATSRCREPOSITORYBRANCH00 /AWS1/CATSRCREPOSITORYBRANCH00

The name for the branch you're creating.

Optional arguments:

IV_HEADCOMMITID TYPE /AWS1/CATSTRING /AWS1/CATSTRING

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

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_CATCRESRCREPOSITORY01 /AWS1/CL_CATCRESRCREPOSITORY01