home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

8 rows where issue = 585411547 sorted by updated_at descending

✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 1

  • simonw 8

issue 1

  • Commits in GitHub API can have null author · 8 ✖

author_association 1

  • MEMBER 8
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
602813731 https://github.com/dogsheep/github-to-sqlite/issues/18#issuecomment-602813731 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/18 MDEyOklzc3VlQ29tbWVudDYwMjgxMzczMQ== simonw 9599 2020-03-23T19:38:03Z 2020-03-23T20:44:49Z MEMBER

So it turns out "author" and "committer" on the commit are null if the email address in the nested "commit" doesn't match an existing GitHub user.

Maybe I should be storing the nested data somewhere as well?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Commits in GitHub API can have null author 585411547  
602846293 https://github.com/dogsheep/github-to-sqlite/issues/18#issuecomment-602846293 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/18 MDEyOklzc3VlQ29tbWVudDYwMjg0NjI5Mw== simonw 9599 2020-03-23T20:44:40Z 2020-03-23T20:44:40Z MEMBER

I implemented the raw_authors idea.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Commits in GitHub API can have null author 585411547  
602815120 https://github.com/dogsheep/github-to-sqlite/issues/18#issuecomment-602815120 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/18 MDEyOklzc3VlQ29tbWVudDYwMjgxNTEyMA== simonw 9599 2020-03-23T19:40:55Z 2020-03-23T19:43:19Z MEMBER

I could pull a pk-hashed version of the name/email into separate raw_author and raw_committer columns perhaps - against a commit_authors table. Could be interesting.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Commits in GitHub API can have null author 585411547  
602811785 https://github.com/dogsheep/github-to-sqlite/issues/18#issuecomment-602811785 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/18 MDEyOklzc3VlQ29tbWVudDYwMjgxMTc4NQ== simonw 9599 2020-03-23T19:33:56Z 2020-03-23T19:34:06Z MEMBER

json [ { "sha": "a8dc914089d399d9b522ebb51b67f9ac2e8aa6b0", "node_id": "MDY6Q29tbWl0OTMyMDk6YThkYzkxNDA4OWQzOTlkOWI1MjJlYmI1MWI2N2Y5YWMyZThhYTZiMA==", "commit": { "author": { "name": "Simon Willison", "email": "simon@...", "date": "2008-12-18T23:17:12Z" }, "committer": { "name": "Simon Willison", "email": "simon@...", "date": "2008-12-18T23:17:12Z" }, "message": "First commit", "tree": { "sha": "ac2dfb75e2592c59165c2880f3f7a16dafd452a1", "url": "https://api.github.com/repos/simonw/simonw.github.com/git/trees/ac2dfb75e2592c59165c2880f3f7a16dafd452a1" }, "url": "https://api.github.com/repos/simonw/simonw.github.com/git/commits/a8dc914089d399d9b522ebb51b67f9ac2e8aa6b0", "comment_count": 0, "verification": { "verified": false, "reason": "unsigned", "signature": null, "payload": null } }, "url": "https://api.github.com/repos/simonw/simonw.github.com/commits/a8dc914089d399d9b522ebb51b67f9ac2e8aa6b0", "html_url": "https://github.com/simonw/simonw.github.com/commit/a8dc914089d399d9b522ebb51b67f9ac2e8aa6b0", "comments_url": "https://api.github.com/repos/simonw/simonw.github.com/commits/a8dc914089d399d9b522ebb51b67f9ac2e8aa6b0/comments", "author": null, "committer": null, "parents": [] } ]

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Commits in GitHub API can have null author 585411547  
602811468 https://github.com/dogsheep/github-to-sqlite/issues/18#issuecomment-602811468 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/18 MDEyOklzc3VlQ29tbWVudDYwMjgxMTQ2OA== simonw 9599 2020-03-23T19:33:14Z 2020-03-23T19:33:14Z MEMBER

Found one: https://api.github.com/repos/simonw/simonw.github.com/commits

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Commits in GitHub API can have null author 585411547  
602807178 https://github.com/dogsheep/github-to-sqlite/issues/18#issuecomment-602807178 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/18 MDEyOklzc3VlQ29tbWVudDYwMjgwNzE3OA== simonw 9599 2020-03-23T19:24:43Z 2020-03-23T19:24:43Z MEMBER

I need to find an example before I work on this.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Commits in GitHub API can have null author 585411547  
601980957 https://github.com/dogsheep/github-to-sqlite/issues/18#issuecomment-601980957 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/18 MDEyOklzc3VlQ29tbWVudDYwMTk4MDk1Nw== simonw 9599 2020-03-21T02:30:03Z 2020-03-21T02:30:03Z MEMBER

https://github.community/t5/GitHub-API-Development-and/Request-for-commits-quot-author-quot-null-and-quot-committer/m-p/35842/highlight/true#M3372

Commits aren't always associated with a GitHub user. For example, perhaps a friend of mine and I were working on a project together. I have a GitHub account and my friend doesn't. If we both add commits to the repository using our own email addresses and names and then I push the repository to GitHub, my commits will be associated with my GitHub user account but my friends' commits will show up with author and committer as null.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Commits in GitHub API can have null author 585411547  
601980724 https://github.com/dogsheep/github-to-sqlite/issues/18#issuecomment-601980724 https://api.github.com/repos/dogsheep/github-to-sqlite/issues/18 MDEyOklzc3VlQ29tbWVudDYwMTk4MDcyNA== simonw 9599 2020-03-21T02:28:05Z 2020-03-21T02:28:05Z MEMBER

This suggests that commit["author"] can be None in some cases?

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Commits in GitHub API can have null author 585411547  

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