home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

12 rows where "updated_at" is on date 2020-04-30 sorted by updated_at descending

✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: issue_url, reactions, created_at (date), updated_at (date)

issue 3

  • Command for retrieving dependents for a repo 6
  • Directory configuration mode should support metadata.yaml 4
  • Fall back to authentication via ENV 2

author_association 2

  • MEMBER 8
  • OWNER 4

user 1

  • simonw 12
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
622171097 https://github.com/dogsheep/github-to-sqlite/issues/33#issuecomment-622171097 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/33 MDEyOklzc3VlQ29tbWVudDYyMjE3MTA5Nw== simonw 9599 2020-04-30T23:22:45Z 2020-04-30T23:23:57Z MEMBER

The auth.json mechanism this uses is standard across all of the other Dogsheep tools - it's actually designed so you can have one auth.json with a bunch of different credentials for different tools:

json { "goodreads_personal_token": "...", "goodreads_user_id": "...", "github_personal_token": "...", "pocket_consumer_key": "...", "pocket_username": "...", "pocket_access_token": "..." } But... github-to-sqlite does feel like it deserves a special case here, since it's such a good fit for running inside of GitHub Actions - which even provide a GITHUB_TOKEN for you to use!

So I don't think it will harm the family of tools too much if this has an environment variable alternative to the -a file.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Fall back to authentication via ENV 609950090  
622169728 https://github.com/dogsheep/github-to-sqlite/issues/33#issuecomment-622169728 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/33 MDEyOklzc3VlQ29tbWVudDYyMjE2OTcyOA== simonw 9599 2020-04-30T23:18:51Z 2020-04-30T23:18:51Z MEMBER

Sure, that sounds fine to me.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Fall back to authentication via ENV 609950090  
622162835 https://github.com/dogsheep/github-to-sqlite/issues/34#issuecomment-622162835 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/34 MDEyOklzc3VlQ29tbWVudDYyMjE2MjgzNQ== simonw 9599 2020-04-30T22:59:26Z 2020-04-30T22:59:26Z MEMBER

Documentation: https://github.com/dogsheep/github-to-sqlite/blob/c9f48404481882e8b3af06f35e4801a80ac79ed6/README.md#scraping-dependents-for-a-repository

{
    "total_count": 2,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 2,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Command for retrieving dependents for a repo 610408908  
622135654 https://github.com/dogsheep/github-to-sqlite/issues/34#issuecomment-622135654 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/34 MDEyOklzc3VlQ29tbWVudDYyMjEzNTY1NA== simonw 9599 2020-04-30T21:53:44Z 2020-04-30T21:56:06Z MEMBER

I think this is the neatest scraping pattern: python [a["href"].lstrip("/") for a in soup.select("a[data-hovercard-type=repository]")]

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Command for retrieving dependents for a repo 610408908  
622136585 https://github.com/dogsheep/github-to-sqlite/issues/34#issuecomment-622136585 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/34 MDEyOklzc3VlQ29tbWVudDYyMjEzNjU4NQ== simonw 9599 2020-04-30T21:55:51Z 2020-04-30T21:55:51Z MEMBER

And to find the "Next" pagination link: python soup.select(".paginate-container")[0].find("a", text="Next")

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Command for retrieving dependents for a repo 610408908  
622133775 https://github.com/dogsheep/github-to-sqlite/issues/34#issuecomment-622133775 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/34 MDEyOklzc3VlQ29tbWVudDYyMjEzMzc3NQ== simonw 9599 2020-04-30T21:49:27Z 2020-04-30T21:49:27Z MEMBER

Proposed command:

github-to-sqlite scrape-dependents github.db simonw/datasette

I'll pull full details of the scraped repos from the regular API. I'll also record when they were "first seen" by the command.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Command for retrieving dependents for a repo 610408908  
622133422 https://github.com/dogsheep/github-to-sqlite/issues/34#issuecomment-622133422 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/34 MDEyOklzc3VlQ29tbWVudDYyMjEzMzQyMg== simonw 9599 2020-04-30T21:48:39Z 2020-04-30T21:48:39Z MEMBER

It looks like the only option is to scrape them. I'll do that and then replace with an API as soon as one becomes available.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Command for retrieving dependents for a repo 610408908  
622133298 https://github.com/dogsheep/github-to-sqlite/issues/34#issuecomment-622133298 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/34 MDEyOklzc3VlQ29tbWVudDYyMjEzMzI5OA== simonw 9599 2020-04-30T21:48:24Z 2020-04-30T21:48:24Z MEMBER

Unfortunately it's not available through any GitHub API - I managed to figure out how to get dependencies, but I need dependents. https://github.com/simonw/til/blob/master/github/dependencies-graphql-api.md

{
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Command for retrieving dependents for a repo 610408908  
622043887 https://github.com/simonw/datasette/issues/747#issuecomment-622043887 https://api.github.com/repos/simonw/datasette/issues/747 MDEyOklzc3VlQ29tbWVudDYyMjA0Mzg4Nw== simonw 9599 2020-04-30T19:04:19Z 2020-04-30T19:04:19Z OWNER

https://datasette.readthedocs.io/en/latest/config.html#configuration-directory-mode

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Directory configuration mode should support metadata.yaml 610192152  
622036934 https://github.com/simonw/datasette/issues/747#issuecomment-622036934 https://api.github.com/repos/simonw/datasette/issues/747 MDEyOklzc3VlQ29tbWVudDYyMjAzNjkzNA== simonw 9599 2020-04-30T18:51:18Z 2020-04-30T18:51:18Z OWNER

Needs docs.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Directory configuration mode should support metadata.yaml 610192152  
622003376 https://github.com/simonw/datasette/issues/747#issuecomment-622003376 https://api.github.com/repos/simonw/datasette/issues/747 MDEyOklzc3VlQ29tbWVudDYyMjAwMzM3Ng== simonw 9599 2020-04-30T17:45:32Z 2020-04-30T17:45:32Z OWNER

I can use this function to load the JSON-or-YAML: https://github.com/simonw/datasette/blob/d349d57cdf3d577afb62bdf784af342a4d5be660/datasette/utils/init.py#L798-L806

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Directory configuration mode should support metadata.yaml 610192152  
621948898 https://github.com/simonw/datasette/issues/747#issuecomment-621948898 https://api.github.com/repos/simonw/datasette/issues/747 MDEyOklzc3VlQ29tbWVudDYyMTk0ODg5OA== simonw 9599 2020-04-30T16:05:50Z 2020-04-30T16:05:50Z OWNER

Relevant code:

https://github.com/simonw/datasette/blob/e37f4077c0f1cd09d4102213d4e2a512af471b8d/datasette/app.py#L206-L208

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Directory configuration mode should support metadata.yaml 610192152  

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 1082.109ms · About: github-to-sqlite
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows