Enforce creation of repos from templates

Would someone please advise suggestions on how to enforce that new repositories in an organisation are created only from one of the templates?

Welcome to the GitHub community, @ma499 ! We’re happy you’re here. You are more likely to get a useful response if you are posting your question(s) in the applicable category. I’ve gone ahead and moved it for you. Good luck!

1 Like

If you’re feeling adventurous, you could set up a webhook:
https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#repository

Filter for created

Or you could just not let most people create repositories – this is much simpler :smile: