🚀 Feature: Add option to remove "generated from" notice from created repositories #913
Closed
3 tasks done
Labels
status: accepting prs
Please, send a pull request to resolve this!
type: feature
New enhancement or request
Bug Report Checklist
main
branch of the repository.Overview
Right now, newly created repositories -including
npx create-typescript-app
with--mode create
- are created with GitHub's "create from template" feature. That means they have a "generated from https://github.com/JoshuaKGoldberg/create-typescript-app" notice:I like this for my personal repos because it's nice advertising for the template 😄. But I can definitely see why it'd be annoying for a not-me person to have a pointer to some random template stuck there. And TIL it's actually kind of annoying/manual to get rid of that notice: https://stackoverflow.com/questions/16052477/delete-fork-dependency-of-a-github-repository 😕.
Let's add in a flag to make it so the notice doesn't get added upon creation of a new repository. Maybe a name like
--exclude-generated-from
? I haven't thought about the name very much. Nor have I looked into how to do this.Additional Info
https://octokit.github.io/rest.js/v20#repos-create-using-template is how repos are created for setup scripts right now:
create-typescript-app/src/shared/options/ensureRepositoryExists.ts
Line 60 in 86e84ca
I haven't looked into how to create a repo other ways in a while and don't remember if there are other, more convenient ways.
The text was updated successfully, but these errors were encountered: