diff --git a/packages/playground/data-liberation/blueprints-library b/packages/playground/data-liberation/blueprints-library index b52a93ce17..b1362cbe3c 160000 --- a/packages/playground/data-liberation/blueprints-library +++ b/packages/playground/data-liberation/blueprints-library @@ -1 +1 @@ -Subproject commit b52a93ce17562a1964fb27df770792fe165b217b +Subproject commit b1362cbe3ca0956a36cc00dd769698bde0ba2ec7 diff --git a/packages/playground/website/src/github/github-export-form/form.tsx b/packages/playground/website/src/github/github-export-form/form.tsx index a7b4b207b6..dd68acaf56 100644 --- a/packages/playground/website/src/github/github-export-form/form.tsx +++ b/packages/playground/website/src/github/github-export-form/form.tsx @@ -231,7 +231,7 @@ export default function GitHubExportForm({ } else if (formValues.contentType === 'plugin') { updatedValues['toPathInRepo'] = `/${formValues.plugin}`; } else { - updatedValues['toPathInRepo'] = '/playground'; + updatedValues['toPathInRepo'] = '/'; } setFormValues({ ...formValues, @@ -312,6 +312,10 @@ export default function GitHubExportForm({ ); } + if (relativeExportPaths.length === 0) { + relativeExportPaths = ['/']; + } + const isoDateSlug = new Date().toISOString().replace(/[:.]/g, '-'); const newBranchName = `playground-changes-${isoDateSlug}`; let commitMessage = formValues.commitMessage; @@ -382,7 +386,6 @@ export default function GitHubExportForm({ }); } } - const changes = await changeset( new Map(Object.entries(ghComparableFiles)), allPlaygroundFiles