* Create a new repository with an initial access token. * @param name Repository name (alphanumeric, dots, hyphens, underscores). * @param opts Optional: readOnly flag, description, default branch name. * @returns Repo metadata with initial token. * @throws {ArtifactsError} with code `IN
(
name: string,
opts?: {
readOnly?: boolean;
description?: string;
setDefaultBranch?: string;
},
)
| 11289 | * @throws {ArtifactsError} with code `ALREADY_EXISTS` if the repo already exists. |
| 11290 | */ |
| 11291 | create( |
| 11292 | name: string, |
| 11293 | opts?: { |
| 11294 | readOnly?: boolean; |
no outgoing calls