Github GraphQL API提供的值与我们在repo页面上看到的不同
我正在尝试使用Github API v4检索公共回购的上次提交和发布次数,以下是我的查询:Github GraphQL API提供的值与我们在repo页面上看到的不同,graphql,github-api,Graphql,Github Api,我正在尝试使用Github API v4检索公共回购的上次提交和发布次数,以下是我的查询: { repository(owner: "tensorflow", name: "tensorflow") { id name releases { totalCount } pushedAt } } 我得到的结果是: { "data": { "repository": {
{
repository(owner: "tensorflow", name: "tensorflow") {
id
name
releases {
totalCount
}
pushedAt
}
}
我得到的结果是:
{
"data": {
"repository": {
"id": "MDEwOlJlcG9zaXRvcnk0NTcxNzI1MA==",
"name": "tensorflow",
"releases": {
"totalCount": 49
},
"pushedAt": "2018-03-21T03:28:59Z"
}
}
}
API返回的版本数为49,但如果检查,此时的版本数为51。
你知道为什么这两种价值观不同吗?如何检索回购页面中的值
另外,
pushedAt
返回的日期时间给出了不同的时间,是否有方法检索默认分支中的上次提交时间?关于发布号:
- 第50个是预发布版本,可能不计入
- 第51个不到8小时,因此可能存在缓存效果