fix(scaffolder): get correct resultDir, template

This commit is contained in:
Ivan Shmidt
2020-07-07 09:08:30 +02:00
parent 8f1e0f67d1
commit 0933734e08
3 changed files with 16 additions and 2 deletions
@@ -11,3 +11,16 @@ spec:
processor: cookiecutter
type: service
path: '.'
schema:
required:
- component_id
- description
properties:
component_id:
title: Name
type: string
description: Unique name of the component
description:
title: Description
type: string
description: Description of the component
@@ -106,7 +106,7 @@ export async function createRouter(
{
name: 'Run the templater',
handler: async (ctx: StageContext<{ skeletonDir: string }>) => {
const resultDir = await templater.run({
const { resultDir } = await templater.run({
directory: ctx.skeletonDir,
dockerClient,
logStream: ctx.logStream,
+2 -1
View File
@@ -52,7 +52,8 @@ export class ScaffolderApi {
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({ template, values }),
// TODO(shmidt-i): when repo picker is implemented, take isOrg from it
body: JSON.stringify({ template, ...values, isOrg: true }),
});
if (response.status !== 201) {