mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-05-01 03:47:36 -05:00
fix: split to packages to support gql gen
This commit is contained in:
32
packages/gql_github/lib/releases.graphql
Normal file
32
packages/gql_github/lib/releases.graphql
Normal file
@@ -0,0 +1,32 @@
|
||||
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 {
|
||||
hasNextPage
|
||||
endCursor
|
||||
}
|
||||
nodes {
|
||||
tagName
|
||||
description
|
||||
name
|
||||
author {
|
||||
name
|
||||
avatarUrl
|
||||
}
|
||||
publishedAt
|
||||
url
|
||||
releaseAssets(first: 30) {
|
||||
nodes {
|
||||
name
|
||||
downloadUrl
|
||||
downloadCount
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user