sindresorhus/refined-github

Automatically disable wiki and project features #3533

Richienb posted onGitHub

I don't personally use the wiki or project features in repositories so it would be useful for them to be automatically disabled on creation.


Not a bad idea, we’d look for the “repository/new” page and make an API call after it.

@sindresorhus do you know whether it’s still not possible to have them disabled natively? I think they implemented this for organizations, with a repository named .github

Edit: I hope https://github.com/github/roadmap/issues/63 will become a page of “Defaults for new repos”

posted by fregante over 4 years ago

Almost done: (Needs more work like to use postForm etc.) https://github.com/yakov116/refined-github/commit/24086419244e798311a12a3cbe59508592ae2f2d

@fregante should we add a checkbox like we do by auto merge after tests pass? (forgot what the feature is called)

posted by yakov116 over 4 years ago

@sindresorhus do you know whether it’s still not possible to have them disabled natively? I think they implemented this for organizations, with a repository named .github

Not as far as I know.

posted by sindresorhus over 4 years ago

should we add a checkbox

Not a bad idea, but instead of breaking and posting the form, this feature should only remember that a repository was just created, but then it should run on the next page, so we don’t have to handle (and potentially break) the creations form.

You can add sessionStorage on submit; then detect it in isRepoRoot and make the api call

posted by fregante over 4 years ago

so we don’t have to handle (and potentially break) the creations form.

Agree that was my next issue

posted by yakov116 over 4 years ago

Fund this Issue

$0.00
Funded

Pull requests