github graphql:获取存储库的所有叉子

发布于 2025-02-05 17:05:24 字数 688 浏览 5 评论 0原文

我想获得特定存储库的所有叉子(带时间戳)的列表。 “ 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风吹雨成花 2025-02-12 17:05:24

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 bigger

Credit for the answer goes here: https://github.com/orgs/community/discussions/33375#discussioncomment-3671593

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文