Last active
November 15, 2023 14:15
-
-
Save heyajulia/6b52127f5f60a476d4b0608d5a3b0b31 to your computer and use it in GitHub Desktop.
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
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