来自 Github API 的分支与组织者页面上显示的内容不匹配



我正在尝试在这里做一个带回家的面试作业,我遇到了一些问题。

出于某种原因,Github API上显示的分叉:https://api.github.com/orgs/aipub/repos 与 https://github.com/aipub/页面上显示的不同。

所以比如——

python-blogger应该有4个分支。但在 API JSON 上它说 0。

我在这里做错了什么?

因为没有

aipub/python-blogger存储库的分支。但它其他 3 个中的叉子或/theatlantic/python-blogger

{
   "fork": true
}

但是,原始存储库有 4 个分支

https://github.com/theatlantic/python-blogger

所以 API 说:

https://api.github.com/orgs/theatlantic/repos

{
   "forks_count": 4,
}

最新更新