如何使用 Octokit 从存档中恢复 Github 回购

How to resore Github repo from archive using Octokit

我有来自 github 迁移 API 的存档。我如何使用 Nodejs 和 Octokit 在不同的 repo 中恢复它?

显然 GitHub 的 REST API does not support 'un-archiving' repositories but, apparently it is possible to do it with GraphQL API as pointed in this post 在 GitHub 社区中。

Remember Octokit has a GraphQL API client for browsers and Node

关于在不同的存储库中取消存档我不确定是否可行。也许你可以看看 this Octoherd copy-repository utility(@gr2m,Octokit 的创建者)