Skip to content

Instantly share code, notes, and snippets.

@lmmx
Last active May 28, 2024 08:20
Show Gist options
  • Save lmmx/275863d8915b5918d9be5deea955f8d2 to your computer and use it in GitHub Desktop.
Save lmmx/275863d8915b5918d9be5deea955f8d2 to your computer and use it in GitHub Desktop.
Getting paginated GitHub API comments beyond the first 100
gh api repos/your-username-or-org/your-repo-name/issues/12345/comments --jq '.[0].id'
gh api graphql -f query='
{
repository(owner: "your-username-or-org", name: "your-repo-name") {
issue(number: 12345) {
userContentEdits(first: 100, after: "your-end-cursor-value") {
pageInfo {
endCursor
hasNextPage
}
nodes {
createdAt
diff
}
}
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment