feat(scaffolder): working end-to-end flow with hardcoded params
This commit is contained in:
+9
@@ -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: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user