Skip to content

Instantly share code, notes, and snippets.

@dahlbyk
Created September 15, 2016 00:09
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dahlbyk/c5ad56a5b77059dceca4ac53b747287a to your computer and use it in GitHub Desktop.
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.
{
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
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
@Restuta
Copy link

Restuta commented May 28, 2021

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment