Skip to content

Instantly share code, notes, and snippets.

@LucaColonnello
Forked from dahlbyk/projects.graphql
Created January 10, 2020 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LucaColonnello/e28ccddcbfefcf7023e20ad463fb87ee to your computer and use it in GitHub Desktop.
Save LucaColonnello/e28ccddcbfefcf7023e20ad463fb87ee to your computer and use it in GitHub Desktop.
GraphQL to fetch GitHub Projects+Columns+Cards with issue/PR detail for a specific repo.
{
search(type: REPOSITORY, query: "org:huboard-testing spooky-octo-pug", first: 1) {
edges {
node {
__typename
... on Repository {
owner {
id
}
name
projects(first: 10) {
edges {
node {
number
name
columns(first: 30) {
edges {
node {
name
cards(first: 30) {
edges {
cursor
node {
id
note
state
content {
... on Issue {
id
number
title
}
... on PullRequest {
id
number
title
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment