Closed
Description
The GitHub GraphQL API seems to bug: only the 10 first releases are returned instead of the 100 first.
hasNextPage
is always false
and the endCursor
is always MTA
.
I tried on several projects and the behavior is always the same.
This was working well for at least 2 years.
I checked:
- the changelog https://docs.github.com/en/graphql/overview/changelog
- the breaking changes https://docs.github.com/en/graphql/overview/breaking-changes
There is nothing about that, so I think it's a bug.
I tried the GitHub GraphQL API Explorer
Query
query ($owner: String!, $name: String!, $releasesCursor: String){
repository(owner: $owner, name: $name) {
releases(first: 100, after: $releasesCursor) {
nodes {
tagName
# releaseAssets(first: 50) {
# nodes {
# downloadUrl
# }
# }
}
pageInfo {
endCursor
hasNextPage
}
}
}
}
Variables
{
"owner": "golangci",
"name": "golangci-lint",
"releasesCursor": null
}
Results
{
"data": {
"repository": {
"releases": {
"nodes": [
{
"tagName": "v1.50.0"
},
{
"tagName": "v1.49.0"
},
{
"tagName": "v1.48.0"
},
{
"tagName": "v1.47.3"
},
{
"tagName": "v1.47.2"
},
{
"tagName": "v1.47.1"
},
{
"tagName": "v1.47.0"
},
{
"tagName": "v1.46.2"
},
{
"tagName": "v1.46.1"
},
{
"tagName": "v1.46.0"
}
],
"pageInfo": {
"endCursor": "MTA",
"hasNextPage": false
}
}
}
}
}
I opened tickets:
- on the community support: https://github.com/orgs/community/discussions/36234
- on the GitHub official support (the link is not shareable)
Because of that we cannot merge PRs.