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

Request body

git_urlstring

URL to the git repo. May be omitted if repo_id already has it set.

Response

Import started asynchronously. Poll the repo until it shows a default branch.

Changes

No recorded changes to this endpoint across all 1 revision of this API.