Skip to content

Instantly share code, notes, and snippets.

@loic-sharma
Last active October 7, 2022 00:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loic-sharma/220611fbdf1146bdab695779cbb16540 to your computer and use it in GitHub Desktop.
Save loic-sharma/220611fbdf1146bdab695779cbb16540 to your computer and use it in GitHub Desktop.
Grab a timeline of reactions for a repository's issues
{
repository(owner: "nuget", name: "home") {
issues(
first: 20
filterBy: {states: [OPEN]}
orderBy: {field: CREATED_AT, direction: DESC}
) {
pageInfo {
endCursor
}
nodes {
number
reactions(first: 20, orderBy: {field: CREATED_AT, direction: DESC}) {
pageInfo {
endCursor
}
nodes {
content
createdAt
}
}
}
}
}
}
# Grab a single issue's reaction timeline
# See: https://github.com/NuGet/Home/issues/3891
{
repository(owner: "nuget", name: "home") {
issue(number: 3891) {
number
reactions(first: 100, orderBy: {field: CREATED_AT, direction: DESC}) {
pageInfo {
endCursor
}
nodes {
content
createdAt
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment