From a8c29cc99a8f6b01e45685892a4670c0d3d82aa4 Mon Sep 17 00:00:00 2001 From: blam Date: Thu, 17 Feb 2022 09:59:41 +0100 Subject: [PATCH] chore: move to entityRef Signed-off-by: blam --- .../src/actions/fetch/cookiecutter.test.ts | 2 +- plugins/scaffolder-common/src/TaskSpec.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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; };