feat(scaffolder): working end-to-end flow with hardcoded params

This commit is contained in:
Ivan Shmidt
2020-06-29 22:42:39 +02:00
parent 97f3d6b056
commit dd5aa39d61
7 changed files with 204 additions and 55 deletions
@@ -0,0 +1,9 @@
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
name: {{cookiecutter.component_id}}
description: {{cookiecutter.description}}
spec:
type: website
lifecycle: experimental
owner: {{cookiecutter.owner}}
@@ -20,7 +20,6 @@ import { TemplateEntityV1alpha1 } from '@backstage/catalog-model';
import { JsonValue } from '@backstage/config';
import { RequiredTemplateValues } from '../templater';
import { Repository, Remote, Signature, Cred } from 'nodegit';
import gitUrlParse from 'git-url-parse';
export class GithubStorer implements Storer {
private client: Octokit;
@@ -94,8 +94,9 @@ export async function createRouter(
entity: template,
values: {
component_id: `blob${Date.now()}`,
org: 'hojden',
org: 'shmidt-i-test',
description: 'test',
owner: 'somebody',
},
stages: [
{