Files
git-touch/lib/gql_github/releases.graphql
2022-10-01 04:03:08 +08:00

34 lines
624 B
GraphQL

# import './fragments.graphql'
query Releases($name: String!, $owner: String!, $cursor: String) {
repository(name: $name, owner: $owner) {
releases(
first: 30
after: $cursor
orderBy: { field: CREATED_AT, direction: DESC }
) {
pageInfo {
...PageInfoParts
}
nodes {
tagName
description
name
author {
name
avatarUrl
}
publishedAt
url
releaseAssets(first: 30) {
nodes {
name
downloadUrl
downloadCount
}
}
}
}
}
}