mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 13:54:37 +03:00
Put graphql query in it's own file
This commit is contained in:
29
scripts/list_releases.graphql
Normal file
29
scripts/list_releases.graphql
Normal file
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user