Stanislav Sysoiev
Stanislav Sysoiev

Reputation: 113

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?

Upvotes: 0

Views: 433

Answers (1)

OscarDOM
OscarDOM

Reputation: 856

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)

Upvotes: 1

Related Questions