Skip to content

Instantly share code, notes, and snippets.

@brejoc
Last active October 28, 2019 19:56
Show Gist options
  • Save brejoc/decf38031d37604fe68ebaacf8ab2653 to your computer and use it in GitHub Desktop.
Save brejoc/decf38031d37604fe68ebaacf8ab2653 to your computer and use it in GitHub Desktop.
Fetches all issues from a repo including labels and board colums.
{
repository(owner: "brejoc", name: "test") {
issues(first: 100) {
totalCount
pageInfo {
startCursor
endCursor
hasNextPage
}
nodes {
createdAt
closedAt
title
url
state
projectCards {
nodes {
id
column {
name
project {
name
}
}
}
}
labels(first: 100) {
nodes {
name
}
}
timelineItems(itemTypes: [ADDED_TO_PROJECT_EVENT, MOVED_COLUMNS_IN_PROJECT_EVENT], first: 250) {
nodes {
__typename
...on AddedToProjectEvent {
id
databaseId
createdAt
}
...on MovedColumnsInProjectEvent {
id
databaseId
createdAt
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment