github graphql:获取存储库的所有叉子
我想获得特定存储库的所有叉子(带时间戳)的列表。 “ https://docs.github.com/en/graphql/overview/explorer”上尝试以下内容时
{
repository(name: "tensorflow", owner: "tensorflow") {
forkCount
forks(first: 100) {
totalCount
}
}
}
当我在 webpage ,但是不可解释的是, “ forks” list 在网页和叉车上显示。因此,我错过了这些存储库的时间戳。
{
"data": {
"repository": {
"forkCount": 86841,
"forks": {
"totalCount": 70082
}
}
}
}
有人对此有解释吗?您如何获得其他存储库?
叉子存储库的可见性无法更改。
先感谢您!
I would like to get a list of all the forks (with timestamp) of a specific repository.
When I try the following on explorer
{
repository(name: "tensorflow", owner: "tensorflow") {
forkCount
forks(first: 100) {
totalCount
}
}
}
It returns the forkCount correctly and as displayed on the webpage, but unexplainably there are over 15,000 fewer repositories in the "forks" list as displayed on the webpage and forkCount. Consequently, I am missing the timestamp for these repositories.
{
"data": {
"repository": {
"forkCount": 86841,
"forks": {
"totalCount": 70082
}
}
}
}
Does anyone have an explanation for this? How do you get the other repositories?
The visibility of a fork repository cannot be changed.
Thank you in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
forks.totalcount
显示此存储库的直接分叉的数量。forkcount
还包括叉子的叉子,这个数字可能更大的答案,答案是: https://github.com/orgs/community/discussions/33375#discussioncomment-3671593
forks.totalCount
shows the number of direct forks of this repository.forkCount
also includes forks of forks and this number may be biggerCredit for the answer goes here: https://github.com/orgs/community/discussions/33375#discussioncomment-3671593