Is there a method to directly do cloning via the REST v3 Github API? Is the best way to create a new repo via the API, get the content of the one you want, and do a PUT request to the new repo with that content? Does that method even work?
I want to clone a GitHub repository into an arbitrarily named repository on my own account without support from the git CLI or GitHub UI (i.e. using GitHub Actions programmatically to automatically provision the repository). What are some thoughts on the best way to do this?