Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MelissaKaulfuss/2f3a3dc155e3031cf713cf5a7550e2a0 to your computer and use it in GitHub Desktop.
Save MelissaKaulfuss/2f3a3dc155e3031cf713cf5a7550e2a0 to your computer and use it in GitHub Desktop.
GraphQL API query to return a Buildkite team and their pipelines
query TeamsWithPipelineInfo {
organization(slug: "orgSlug") {
id
name
teams(first: 100) {
edges{
node{
name
pipelines(first: 100) {
edges{
node{
pipeline{
name
}
}
}
pageInfo {
hasNextPage
}
}
}
}
pageInfo{
hasNextPage
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment