Created
September 15, 2016 00:09
-
-
Save dahlbyk/c5ad56a5b77059dceca4ac53b747287a to your computer and use it in GitHub Desktop.
GraphQL to fetch GitHub Projects+Columns+Cards with issue/PR detail for a specific repo.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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
Might be useful octokit/graphql.js#61 (comment)