Merge pull request #3008 from RoadieHQ/mcalus3/enable-pending-locations-for-repo-importing

Mcalus3/enable pending locations for repo importing
This commit is contained in:
Fredrik Adelöw
2020-10-22 15:33:45 +02:00
committed by GitHub
5 changed files with 18 additions and 2 deletions
@@ -17,6 +17,10 @@
export type LocationSpec = {
type: string;
target: string;
// When using repo importer plugin, location is being created before the component yaml file is merged to the main branch.
// This flag is then set to indicate that the file can be not present.
// default value: 'required'.
presence?: 'optional' | 'required';
};
export type Location = {
@@ -21,6 +21,7 @@ export const locationSpecSchema = yup
.object<LocationSpec>({
type: yup.string().required(),
target: yup.string().required(),
presence: yup.string(),
})
.noUnknown()
.required();