Search code examples
node.jsgithubrestoreoctokit

How to resore Github repo from archive using Octokit


I have archive from github migration API. How can I restore it in different repo using Nodejs and Octokit?


Solution

  • Apparently GitHub's REST API does not support 'un-archiving' repositories but, apparently it is possible to do it with GraphQL API as pointed in this post in GitHub Community.

    Remember Octokit has a GraphQL API client for browsers and Node

    About unarchiving it in a different repository I'm not sure if it would be possible. Maybe you could take a look into this Octoherd copy-repository utility (by @gr2m, the creator of Octokit)