home / github

Menu
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

5 rows where issue = 920636216

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: user, author_association, created_at (date), updated_at (date)

id ▼ html_url issue_url node_id user created_at updated_at author_association body reactions issue performed_via_github_app
860895838 https://github.com/dogsheep/github-to-sqlite/issues/64#issuecomment-860895838 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/64 MDEyOklzc3VlQ29tbWVudDg2MDg5NTgzOA== khimaros 231498 2021-06-14T18:23:21Z 2021-06-14T21:37:35Z NONE i have a basic working version at https://github.com/khimaros/github-to-sqlite this can be tested with `github-to-sqlite events.db khimaros/events` caveat: the GitHub API doesn't seem to provide a complete history of events. {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} feature: support "events" 920636216  
861035862 https://github.com/dogsheep/github-to-sqlite/issues/64#issuecomment-861035862 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/64 MDEyOklzc3VlQ29tbWVudDg2MTAzNTg2Mg== khimaros 231498 2021-06-14T22:29:20Z 2021-06-14T22:29:20Z NONE it looks like the v4 GraphQL API is the only way to get data beyond 90 days from GitHub. this is significant change, but may be worth considering in the future. {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} feature: support "events" 920636216  
861041597 https://github.com/dogsheep/github-to-sqlite/issues/64#issuecomment-861041597 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/64 MDEyOklzc3VlQ29tbWVudDg2MTA0MTU5Nw== simonw 9599 2021-06-14T22:44:54Z 2021-06-14T22:44:54Z MEMBER Have you found a way to access events in GraphQL? I can only see way to access a timeline of events for a single issue or a single pull request. See also https://github.community/t/get-event-equivalent-for-v4/13600/2 {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} feature: support "events" 920636216  
861042050 https://github.com/dogsheep/github-to-sqlite/issues/64#issuecomment-861042050 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/64 MDEyOklzc3VlQ29tbWVudDg2MTA0MjA1MA== simonw 9599 2021-06-14T22:45:42Z 2021-06-14T22:45:42Z MEMBER I'm definitely interested in supporting events in this tool - see #14. {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} feature: support "events" 920636216  
861087651 https://github.com/dogsheep/github-to-sqlite/issues/64#issuecomment-861087651 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/64 MDEyOklzc3VlQ29tbWVudDg2MTA4NzY1MQ== khimaros 231498 2021-06-15T00:48:37Z 2021-06-15T00:48:37Z NONE @simonw -- i've created an omega-query that fetched most of what was interesting to me for a single user. found by poking around in the "Explorer" tab in https://docs.github.com/en/graphql/overview/explorer note: pagination is still required via `first` and `last` but it seems to allow unlimited history. ``` query MyQuery { __typename user(login: "<user>") { id pinnedItems(first: 100) { edges { node } } pullRequests(first: 100) { nodes { body title state createdAt } } createdAt issues(first: 100) { pageInfo { endCursor startCursor } nodes { title url createdAt body } } issueComments(first: 100) { edges { node { id updatedAt url body } } } repositories(first: 100) { nodes { createdAt description parent { name } pinnedIssues(first: 100) { edges { node { id } } } pinnedDiscussions(first: 100) { edges { node { id } } } } } starredRepositories(first: 100) { edges { node { id } } } } } ``` {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} feature: support "events" 920636216  

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
, [performed_via_github_app] TEXT);
CREATE INDEX [idx_issue_comments_issue]
                ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
                ON [issue_comments] ([user]);
Powered by Datasette · Queries took 19.707ms · About: simonw/datasette-graphql