|
|
@@ -87,7 +87,7 @@ abstract class GitCatalog<T extends Entity, TCR = unknown> {
|
|
|
async create(entity: T): Promise<{ entity: T; cr: TCR }> {
|
|
|
await this.#init();
|
|
|
const branch = `feat/create-${this.#entityTypeName}-${entity.name}`;
|
|
|
- entity.id = slugify(entity.name);
|
|
|
+ entity.id = entity.id?.trim() || slugify(entity.name);
|
|
|
const cr = this.#entitySerializer(entity);
|
|
|
await this.#gitClient.createFile(
|
|
|
`${this.#entitiesDirectory}/${entity.id}.yaml`,
|