Browse Source

Put graphql query in it's own file

pull/11891/head
Max Gautier 2 months ago
parent
commit
a6219c84c9
Failed to extract signature
1 changed files with 29 additions and 0 deletions
  1. 29
      scripts/list_releases.graphql

29
scripts/list_releases.graphql

@ -0,0 +1,29 @@
query($repoWithReleases: [ID!]!, $repoWithTags: [ID!]!) {
with_releases: nodes(ids: $repoWithReleases) {
... on Repository {
nameWithOwner
releases(first: 100) {
nodes {
tagName
isPrerelease
releaseAssets {
totalCount
}
}
}
}
}
with_tags: nodes(ids: $repoWithTags) {
... on Repository {
nameWithOwner
refs(refPrefix: "refs/tags/", last: 100) {
nodes {
name
}
}
}
}
}
Loading…
Cancel
Save