feat: added some nice validation and functionality to the repo picker

Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Co-authored-by: Johan Haals <johan.haals@gmail.com>
Signed-off-by: Johan Haals <johan.haals@gmail.com>
This commit is contained in:
blam
2021-02-24 14:47:03 +01:00
committed by Johan Haals
parent 2f404bd69d
commit 12771f5c34
4 changed files with 184 additions and 122 deletions
@@ -82,25 +82,29 @@ spec:
type: service
parameters:
title: Fill in some BS params
required:
- name
properties:
name:
title: Name
type: string
description: Unique name of the component
ui:autofocus: true
ui:options:
rows: 5
repoUrl:
title: Repository Location
type: string
description: Copy https://github.com/aeothgiaetgh/aetkijhahte and hammer in some more letters
ui:field: RepoUrlPicker
ui:options:
allowedHosts:
- github.com
- title: Fill in some parameters for the template
required:
- name
properties:
name:
title: Name
type: string
description: Unique name of the component
ui:autofocus: true
ui:options:
rows: 5
- title: Choose destination
required:
- repoUrl
properties:
repoUrl:
title: Repository Location
type: string
ui:field: RepoUrlPicker
ui:options:
allowedHosts:
- github.com
steps:
- id: fetch-base