Last active
May 28, 2024 08:20
-
-
Save lmmx/275863d8915b5918d9be5deea955f8d2 to your computer and use it in GitHub Desktop.
Getting paginated GitHub API comments beyond the first 100
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 repos/your-username-or-org/your-repo-name/issues/12345/comments --jq '.[0].id' |
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 -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