Is there a developer API for the import repository function in Bitbucket Cloud?
I ran across this question, but it's a bit dated, and the the response was vague.
https://community.atlassian.com/t5/Answers-Developer-Questions/Bitbucket-API-Import/qaq-p/463734
Is there an API for importing another git repository? We're trying to work around the lack of repo templates in BB Cloud.
Yes, there is an API for the repository that allows you create a new one, have a look at repositories{workspace}{repo_slug}
But note that you cannot populate the repository via the API, that has to be done via Git commands on a local copy of the repository that you then push up to Bitbucket.
Yeah, I know about that. I'm looking specifically to invoke the "import repository" functionality that is in the UI. I assume that it'd doing a clone and push under the covers, but I was hoping to not have to build that myself.
This thing:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.