Repository Manipulation
Import a Git repo into this Diversion repo
Import a Git repo with all history from a Git URL. repo_id
must have no commits and no branches, or be already marked as synced with the same git_url
. The git repo URL must have http credentials embedded or otherwise hosted on Github and the owner has the Diversion Github app integration set up.
POST
/
repos
/
{repo_id}
/
import
Authorizations
Authorization
string
headerrequiredThis API uses OAuth 2 with the implicit grant flow
Path Parameters
repo_id
string
requiredThe repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.
Body
application/json
git_url
string
URL to the git repo. May be omitted if repo_id already has it set.