Skip to content

Instantly share code, notes, and snippets.

@tatmush
Last active March 21, 2019 09:08
Show Gist options
  • Save tatmush/72eaf1a127a7ad4171a5308c788e6339 to your computer and use it in GitHub Desktop.
Save tatmush/72eaf1a127a7ad4171a5308c788e6339 to your computer and use it in GitHub Desktop.
github-graphql-queries

Inspired by my project here. What i'm actually looking for is a query to find the actor who closed off an issue. Please help___

  • Give a description of what your query does.
  • Paste the query here
@tatmush
Copy link
Author

tatmush commented Mar 21, 2019

Get the last person who commented on a closed issue.

Paste the code in graphql explorer and prettify it.

add cursors to get all the closed issues

query($owner: String!, $name: String!) { repository(owner: $owner, name: $name){ issues(states: CLOSED, first:100){ edges{ node{ ... on Issue{ timeline(last: 1){ edges{ node{ __typename ... on ClosedEvent{ actor{ login } } } } } } } } } } }''' variables = { "owner": "tatmush", "name": "Saturday-THORN-Dev-Rank" }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment