I’m trying to use GraphQL to get all tags of FFmpeg and later get the downloadUrl of each tag release.
In the GraphQL Explorer, I used the following query:
query {
repository(owner: "FFmpeg", name: "FFmpeg") {
refs(refPrefix: "refs/tags/", last: 100) {
nodes {
repository {
releases(last: 100, orderBy: { field: CREATED_AT, direction: DESC}) {
nodes {
name
createdAt
url
releaseAssets(last: 6) {
nodes {
name
downloadCount
downloadUrl
}
}
}
pageInfo {
endCursor
hasNextPage
hasPreviousPage
startCursor
}
}
}
}
}
}
}
But I found there is nothing output. And I found that is because all tags of FFmpeg are listed in https://github.com/FFmpeg/FFmpeg/tags not https://github.com/FFmpeg/FFmpeg/releases.
How to solve this question?
How to solve this question?
New contributor