我希望能够使用 git 克隆 github 上各种项目的问题。我知道我可以克隆代码和 wiki(如果存在的话)。我找不到克隆问题的方法。
作为一个可行的例子,下面是我将如何克隆包含项目源代码的主存储库:
git clone https://github.com/kiwix/kiwix-android.git
这适用于该项目的维基页面:
git clone https://github.com/kiwix/kiwix-android.wiki.git
我已经尝试了以下方法以查看它是否适用于这些问题,但它没有
git clone https://github.com/kiwix/kiwix-android.issues.git
Cloning into 'kiwix-android.issues'...
remote: Repository not found.
fatal: repository 'https://github.com/kiwix/kiwix-android.issues.git/' not found
能够克隆这些问题会有很大的帮助,特别是运行脚本来分析各种问题的问题集等。
最佳答案
感谢@madhu-bhat的建议我阅读了 GitHub's v3 API 上的文档并发现了诸如
之类的示例curl -i "https://api.github.com/repos/vmg/redcarpet/issues?state=closed"
然后我对其进行了修改以获得我们其中一个项目的未决问题:
curl -i "https://api.github.com/repos/kiwix/kiwix-android/issues?state=open"
这种方法可以满足我的需要,并允许我按状态等进行过滤。为 StackOverflow +1。
关于git - 寻找一种方法来克隆 github 项目的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56437562/