mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-11 01:57:37 -03:30
Put graphql query in it's own file
This commit is contained in:
parent
7941be127d
commit
a6219c84c9
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user