🚀 Feature: Make "locator" Options required: owner and repository #70
Labels
status: accepting prs
Please, send a pull request to resolve this! 🙏
type: feature
New enhancement or request
Milestone
Bug Report Checklist
main
branch of the repository.Overview
Creating a new repository on GitHub requires a "locator" consisting of:
"JoshuaKGoldberg"
"create"
Right now there is have some hardcoded logic to create a new repository in
runPreset
:create/packages/create/src/runners/runPreset.ts
Lines 59 to 66 in 9abcd2e
create/packages/create/src/runners/runPreset.ts
Lines 70 to 75 in 9abcd2e
That logic assumes
owner
andrepository
must exist on the Preset's Base's Options. Which, given that all Presets target GitHub repositories right now, is actually a fair assumption. And baking these in as automatically included, non-overridable Options would be a nice bit of work reduction for implementers.Additional Info
In some far-off distant future, this engine will likely support repository creation targets other than GitHub. This will need to be revisited then. But for now, since create-typescript-app is the main feature goal and CTA only supports GitHub, this is fine.
💖
The text was updated successfully, but these errors were encountered: