如何使用 Octokit 从存档中恢复 Github 存储库

问题描述

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

解决方法

显然是 GitHub 的 REST API does not support 'un-archiving' 存储库,但显然可以按照 with GraphQL API 在 GitHub 社区中的说明进行this post

Remember Octokit has a GraphQL API client for browsers and Node

关于将它解压缩到不同的存储库中,我不确定是否可行。也许你可以看看this Octoherd copy-repository utility(作者@gr2m,Octokit 的创造者)