🛠 Tooling: Prevent Templates from defining --repository or --owner to values that can't be stringified into a repository locator #136
Labels
area: documentation
Improvements or additions to documentation ("docs")
area: tooling
Managing the repository's maintenance 🛠️
status: accepting prs
Please, send a pull request to resolve this! 🙏
Milestone
Bug Report Checklist
main
branch of the repository.Overview
A few places in code define
owner
andrepository
as options that must exist:create/packages/create/src/options.ts
Lines 15 to 25 in 78bc44b
That's not enforced. Repositories can override those options, sort of, maybe. It's not clear what happens. Which is not great: we wouldn't want them to, say, override
owner
to az.number()
.I'd like to:
MinimumOptionsShape
through places that might find it usefulAdditional Info
It would be nice to represent this in TypeScript types, but I couldn't figure out a nice way with the type parameter constraints...
💝
The text was updated successfully, but these errors were encountered: