Skip to content

Instantly share code, notes, and snippets.

@heyajulia
Last active November 15, 2023 14:15
Show Gist options
  • Save heyajulia/6b52127f5f60a476d4b0608d5a3b0b31 to your computer and use it in GitHub Desktop.
Save heyajulia/6b52127f5f60a476d4b0608d5a3b0b31 to your computer and use it in GitHub Desktop.
gh api graphql --cache 1h --jq '.data.repository.milestone.issues.edges[] | {(.node.number|tostring): [.node.assignees.edges[].node.login] | length}' --paginate -f query='query ($endCursor: String) {
repository(owner: "microsoft", name: "vscode") {
milestone(number: 8) {
issues(first: 1000, states: [OPEN], after: $endCursor) {
edges {
node {
number
title
assignees(first: 10) {
edges {
node {
login
}
}
}
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
}
}' | jq -s "add" > out.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment