我希望获取关于我的项目被查看、克隆和流量来源的信息(分别)。当前,我可以通过点击仓库页面上的Insights按钮来查看Traffic信息。
请问在GitHub v4 GraphQL API中是否有方案可以检索这些信息?我目前找到的最接近的是以下内容;但是nodes并未包含任何统计数据:
请问在GitHub v4 GraphQL API中是否有方案可以检索这些信息?我目前找到的最接近的是以下内容;但是nodes并未包含任何统计数据:
{
viewer {
repositories(first: 100) {
totalCount
nodes {
name
description
}
pageInfo {
endCursor
hasNextPage
}
}
}
}
// response
{
"data": {
"viewer": {
"repositories": {
"totalCount": 55,
"nodes": [
{
"name": "Repo Name",
"description": "Repo Description"
},
{
...
}
}
}
}
}