scaffolder: Add support for granting access on create

This commit is contained in:
Tim Jacomb
2020-09-12 21:27:26 +01:00
parent 0597211af1
commit fdef955570
4 changed files with 80 additions and 2 deletions
@@ -54,7 +54,7 @@ const useTemplate = (
const OWNER_REPO_SCHEMA = {
$schema: 'http://json-schema.org/draft-07/schema#' as const,
required: ['storePath', 'owner'],
required: ['storePath', 'owner', 'access'],
properties: {
owner: {
type: 'string' as const,
@@ -67,6 +67,11 @@ const OWNER_REPO_SCHEMA = {
title: 'Store path',
description: 'GitHub store path in org/repo format',
},
access: {
type: 'string' as const,
title: 'Access',
description: 'Who should have access, in user or owner/team format',
},
},
};