diff --git a/plugins/scaffolder-backend-module-cookiecutter/src/actions/fetch/cookiecutter.test.ts b/plugins/scaffolder-backend-module-cookiecutter/src/actions/fetch/cookiecutter.test.ts index edc5c3ff77..2c1ecd06f9 100644 --- a/plugins/scaffolder-backend-module-cookiecutter/src/actions/fetch/cookiecutter.test.ts +++ b/plugins/scaffolder-backend-module-cookiecutter/src/actions/fetch/cookiecutter.test.ts @@ -90,7 +90,7 @@ describe('fetch:cookiecutter', () => { }, }, templateInfo: { - name: 'lols', + entityRef: 'template:default/cookiecutter', baseUrl: 'somebase', }, workspacePath: mockTmpDir, diff --git a/plugins/scaffolder-common/src/TaskSpec.ts b/plugins/scaffolder-common/src/TaskSpec.ts index f0002ac0a5..2c7eb26d5b 100644 --- a/plugins/scaffolder-common/src/TaskSpec.ts +++ b/plugins/scaffolder-common/src/TaskSpec.ts @@ -28,12 +28,13 @@ export type TemplateMetadata = { }; /** - * Information about a template that is stored on a task specification + * Information about a template that is stored on a task specification. + * Includes a stringified entityRef, and the baseUrl which is usually the relative path of the template definition * * @public */ export type TemplateInfo = { - name: string; + entityRef: string; baseUrl?: string; };