我使用 API 并能够找到我曾经贡献过的所有存储库,但我很难找到我的第一个提交。
我尝试了什么:
{
viewer {
repositoriesContributedTo(first: 100, privacy: PUBLIC, contributionTypes: COMMIT, before: "2013-07-11T00:00:00") {
totalCount
nodes {
nameWithOwner
}
pageInfo {
endCursor
hasNextPage
}
}
}
}
我得到了什么:
{
"errors": [
{
"type": "INVALID_CURSOR_ARGUMENTS",
"path": [
"viewer",
"repositoriesContributedTo",
"nodes"
],
"locations": [
{
"line": 5,
"column": 7
}
],
"message": "`2013-07-11T00:00:00` does not appear to be a valid cursor."
},
{
"type": "INVALID_CURSOR_ARGUMENTS",
"path": [
"viewer",
"repositoriesContributedTo",
"pageInfo"
],
"locations": [
{
"line": 8,
"column": 7
}
],
"message": "`2013-07-11T00:00:00` does not appear to be a valid cursor."
}
]
}
GitHub 的 GraphQL 浏览器链接: https ://developer.github.com/v4/explorer/