octokit.net icon indicating copy to clipboard operation
octokit.net copied to clipboard

Implement Migration - Source Imports client

Open ryangribble opened this issue 8 years ago • 4 comments

https://developer.github.com/v3/migration/source_imports/

Added to API docs approximately Feb 19 2016

The Source Import API lets you start an import from a Git, Subversion, Mercurial, or Team Foundation Server source repository. This is the same functionality as the GitHub Importer.

/migration/sourceimports/
 - PUT /repos/:owner/:repo/import
 - GET /repos/:owner/:repo/import
 - GET /repos/:owner/:repo/import/authors
 - PATCH /repos/:owner/:repo/import/authors/:author_id
 - DELETE /repos/:owner/:repo/import

Note this is a preview API and custom accept headers are required to activate it application/vnd.github.barred-rock-preview

ryangribble avatar Mar 14 '16 14:03 ryangribble

Since I'm already implementing the Migrations API, should I take this up after I am finished with that?

devkhan avatar Mar 14 '16 15:03 devkhan

Certainly, but it's definitely best to get one over the line before working on the next.l :grinning: Infact, I haven't yet started on #1024 which would be a higher priority IMO, if you wanted to knock off some of that coding :stuck_out_tongue_winking_eye:

ryangribble avatar Mar 14 '16 22:03 ryangribble

@ryangribble Sure, I'll try to make it production-ready ASAP.

devkhan avatar Mar 15 '16 03:03 devkhan

@ryangribble Hi Ryan, does octokit has an implementation for source import endpoint to migrate from other git repos(non GitHub ones) to GitHub

ginuraju avatar Jun 21 '21 10:06 ginuraju

👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!

github-actions[bot] avatar Aug 03 '23 01:08 github-actions[bot]