What I’m trying to do is get the name of the repository used in a Netlify deploy.
I have a GitHub repo which I offer through a ‘Deploy to netlify’ button. When someone uses it they are given the option to name the clone that Netlify creates for their GitHub repository.
I am wondering if there is a way to use that new GitHub username and repo name that they create in the new repo.
Could a Netlify Function be included in the original repo which can allow me to build a link like this once it is cloned to a new user and location?
This way, no matter what the repo is named it can be referenced. Like this: