Skip to content

Commit

Permalink
Added missing issue-comments.json, refs #32
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Apr 22, 2020
1 parent 89e3d92 commit 37eedc0
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
*.db
*.json
.DS_Store
.venv
__pycache__/
Expand Down
95 changes: 95 additions & 0 deletions tests/issue-comments.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
[
{
"url": "https://api.github.com/repos/dogsheep/github-to-sqlite/issues/comments/531516956",
"html_url": "https://github.com/dogsheep/github-to-sqlite/issues/3#issuecomment-531516956",
"issue_url": "https://api.github.com/repos/dogsheep/github-to-sqlite/issues/3",
"id": 531516956,
"node_id": "MDEyOklzc3VlQ29tbWVudDUzMTUxNjk1Ng==",
"user": {
"login": "simonw",
"id": 9599,
"node_id": "MDQ6VXNlcjk1OTk=",
"avatar_url": "https://avatars0.githubusercontent.com/u/9599?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/simonw",
"html_url": "https://github.com/simonw",
"followers_url": "https://api.github.com/users/simonw/followers",
"following_url": "https://api.github.com/users/simonw/following{/other_user}",
"gists_url": "https://api.github.com/users/simonw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/simonw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonw/subscriptions",
"organizations_url": "https://api.github.com/users/simonw/orgs",
"repos_url": "https://api.github.com/users/simonw/repos",
"events_url": "https://api.github.com/users/simonw/events{/privacy}",
"received_events_url": "https://api.github.com/users/simonw/received_events",
"type": "User",
"site_admin": false
},
"created_at": "2019-09-14T21:56:31Z",
"updated_at": "2019-09-14T21:56:31Z",
"author_association": "COLLABORATOR",
"body": "https://api.github.com/users/simonw/repos\r\n\r\nIt would be useful to be able to fetch stargazers, forks etc as well. Not sure if that should be a separate command or a `--stargazers` option to this command.\r\n\r\nProbably a separate command since `issues` is a separate command already."
},
{
"url": "https://api.github.com/repos/dogsheep/github-to-sqlite/issues/comments/531517083",
"html_url": "https://github.com/dogsheep/github-to-sqlite/issues/3#issuecomment-531517083",
"issue_url": "https://api.github.com/repos/dogsheep/github-to-sqlite/issues/3",
"id": 531517083,
"node_id": "MDEyOklzc3VlQ29tbWVudDUzMTUxNzA4Mw==",
"user": {
"login": "simonw",
"id": 9599,
"node_id": "MDQ6VXNlcjk1OTk=",
"avatar_url": "https://avatars0.githubusercontent.com/u/9599?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/simonw",
"html_url": "https://github.com/simonw",
"followers_url": "https://api.github.com/users/simonw/followers",
"following_url": "https://api.github.com/users/simonw/following{/other_user}",
"gists_url": "https://api.github.com/users/simonw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/simonw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonw/subscriptions",
"organizations_url": "https://api.github.com/users/simonw/orgs",
"repos_url": "https://api.github.com/users/simonw/repos",
"events_url": "https://api.github.com/users/simonw/events{/privacy}",
"received_events_url": "https://api.github.com/users/simonw/received_events",
"type": "User",
"site_admin": false
},
"created_at": "2019-09-14T21:58:42Z",
"updated_at": "2019-09-14T21:58:42Z",
"author_association": "COLLABORATOR",
"body": "Split stargazers into #4"
},
{
"url": "https://api.github.com/repos/dogsheep/github-to-sqlite/issues/comments/531517138",
"html_url": "https://github.com/dogsheep/github-to-sqlite/issues/4#issuecomment-531517138",
"issue_url": "https://api.github.com/repos/dogsheep/github-to-sqlite/issues/4",
"id": 531517138,
"node_id": "MDEyOklzc3VlQ29tbWVudDUzMTUxNzEzOA==",
"user": {
"login": "simonw",
"id": 9599,
"node_id": "MDQ6VXNlcjk1OTk=",
"avatar_url": "https://avatars0.githubusercontent.com/u/9599?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/simonw",
"html_url": "https://github.com/simonw",
"followers_url": "https://api.github.com/users/simonw/followers",
"following_url": "https://api.github.com/users/simonw/following{/other_user}",
"gists_url": "https://api.github.com/users/simonw/gists{/gist_id}",
"starred_url": "https://api.github.com/users/simonw/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/simonw/subscriptions",
"organizations_url": "https://api.github.com/users/simonw/orgs",
"repos_url": "https://api.github.com/users/simonw/repos",
"events_url": "https://api.github.com/users/simonw/events{/privacy}",
"received_events_url": "https://api.github.com/users/simonw/received_events",
"type": "User",
"site_admin": false
},
"created_at": "2019-09-14T21:59:59Z",
"updated_at": "2019-09-14T21:59:59Z",
"author_association": "COLLABORATOR",
"body": "Paginate through https://api.github.com/repos/simonw/datasette/stargazers\r\n\r\nSend `Accept: application/vnd.github.v3.star+json` to get the `starred_at` dates."
}
]

0 comments on commit 37eedc0

Please sign in to comment.