{"action":"opened","number":39,"pull_request":{"url":"https://api.github.com/repos/zkat/cacache/pulls/39","id":107946716,"html_url":"https://github.com/zkat/cacache/pull/39","diff_url":"https://github.com/zkat/cacache/pull/39.diff","patch_url":"https://github.com/zkat/cacache/pull/39.patch","issue_url":"https://api.github.com/repos/zkat/cacache/issues/39","number":39,"state":"open","locked":false,"title":"Switch to Promise-based API","user":{"login":"zkat","id":17535,"avatar_url":"https://avatars.githubusercontent.com/u/17535?v=3","gravatar_id":"","url":"https://api.github.com/users/zkat","html_url":"https://github.com/zkat","followers_url":"https://api.github.com/users/zkat/followers","following_url":"https://api.github.com/users/zkat/following{/other_user}","gists_url":"https://api.github.com/users/zkat/gists{/gist_id}","starred_url":"https://api.github.com/users/zkat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zkat/subscriptions","organizations_url":"https://api.github.com/users/zkat/orgs","repos_url":"https://api.github.com/users/zkat/repos","events_url":"https://api.github.com/users/zkat/events{/privacy}","received_events_url":"https://api.github.com/users/zkat/received_events","type":"User","site_admin":false},"body":"**WIP**\r\n\r\nThis patch changes the entire cacache API over to using streams and Promises as its async APIs. This means no more callbacks. This is a very very breaking change, but hopefully will help simplify some bits of the code, and at least help make things more predictable than they are in a few cases right now.\r\n\r\nI'm a bit worried about performance, but I think it's still a good idea.\r\n\r\n### TODO\r\n\r\n- [ ] utils\r\n- [ ] entry index\r\n- [ ] content/put-stream\r\n- [ ] content/read\r\n- [ ] content/rm\r\n- [ ] verify\r\n- [ ] toplevel APIs\r\n- [ ] test suite","created_at":"2017-02-25T04:51:49Z","updated_at":"2017-02-25T04:51:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/zkat/cacache/pulls/39/commits","review_comments_url":"https://api.github.com/repos/zkat/cacache/pulls/39/comments","review_comment_url":"https://api.github.com/repos/zkat/cacache/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zkat/cacache/issues/39/comments","statuses_url":"https://api.github.com/repos/zkat/cacache/statuses/1dafcd2fb161192434ad6a695209d000df47f1a5","head":{"label":"zkat:zkat/promisify","ref":"zkat/promisify","sha":"1dafcd2fb161192434ad6a695209d000df47f1a5","user":{"login":"zkat","id":17535,"avatar_url":"https://avatars.githubusercontent.com/u/17535?v=3","gravatar_id":"","url":"https://api.github.com/users/zkat","html_url":"https://github.com/zkat","followers_url":"https://api.github.com/users/zkat/followers","following_url":"https://api.github.com/users/zkat/following{/other_user}","gists_url":"https://api.github.com/users/zkat/gists{/gist_id}","starred_url":"https://api.github.com/users/zkat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zkat/subscriptions","organizations_url":"https://api.github.com/users/zkat/orgs","repos_url":"https://api.github.com/users/zkat/repos","events_url":"https://api.github.com/users/zkat/events{/privacy}","received_events_url":"https://api.github.com/users/zkat/received_events","type":"User","site_admin":false},"repo":{"id":74117717,"name":"cacache","full_name":"zkat/cacache","owner":{"login":"zkat","id":17535,"avatar_url":"https://avatars.githubusercontent.com/u/17535?v=3","gravatar_id":"","url":"https://api.github.com/users/zkat","html_url":"https://github.com/zkat","followers_url":"https://api.github.com/users/zkat/followers","following_url":"https://api.github.com/users/zkat/following{/other_user}","gists_url":"https://api.github.com/users/zkat/gists{/gist_id}","starred_url":"https://api.github.com/users/zkat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zkat/subscriptions","organizations_url":"https://api.github.com/users/zkat/orgs","repos_url":"https://api.github.com/users/zkat/repos","events_url":"https://api.github.com/users/zkat/events{/privacy}","received_events_url":"https://api.github.com/users/zkat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zkat/cacache","description":"General content-addressable filesystem-based cache.","fork":false,"url":"https://api.github.com/repos/zkat/cacache","forks_url":"https://api.github.com/repos/zkat/cacache/forks","keys_url":"https://api.github.com/repos/zkat/cacache/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zkat/cacache/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zkat/cacache/teams","hooks_url":"https://api.github.com/repos/zkat/cacache/hooks","issue_events_url":"https://api.github.com/repos/zkat/cacache/issues/events{/number}","events_url":"https://api.github.com/repos/zkat/cacache/events","assignees_url":"https://api.github.com/repos/zkat/cacache/assignees{/user}","branches_url":"https://api.github.com/repos/zkat/cacache/branches{/branch}","tags_url":"https://api.github.com/repos/zkat/cacache/tags","blobs_url":"https://api.github.com/repos/zkat/cacache/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zkat/cacache/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zkat/cacache/git/refs{/sha}","trees_url":"https://api.github.com/repos/zkat/cacache/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zkat/cacache/statuses/{sha}","languages_url":"https://api.github.com/repos/zkat/cacache/languages","stargazers_url":"https://api.github.com/repos/zkat/cacache/stargazers","contributors_url":"https://api.github.com/repos/zkat/cacache/contributors","subscribers_url":"https://api.github.com/repos/zkat/cacache/subscribers","subscription_url":"https://api.github.com/repos/zkat/cacache/subscription","commits_url":"https://api.github.com/repos/zkat/cacache/commits{/sha}","git_commits_url":"https://api.github.com/repos/zkat/cacache/git/commits{/sha}","comments_url":"https://api.github.com/repos/zkat/cacache/comments{/number}","issue_comment_url":"https://api.github.com/repos/zkat/cacache/issues/comments{/number}","contents_url":"https://api.github.com/repos/zkat/cacache/contents/{+path}","compare_url":"https://api.github.com/repos/zkat/cacache/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zkat/cacache/merges","archive_url":"https://api.github.com/repos/zkat/cacache/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zkat/cacache/downloads","issues_url":"https://api.github.com/repos/zkat/cacache/issues{/number}","pulls_url":"https://api.github.com/repos/zkat/cacache/pulls{/number}","milestones_url":"https://api.github.com/repos/zkat/cacache/milestones{/number}","notifications_url":"https://api.github.com/repos/zkat/cacache/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zkat/cacache/labels{/name}","releases_url":"https://api.github.com/repos/zkat/cacache/releases{/id}","deployments_url":"https://api.github.com/repos/zkat/cacache/deployments","created_at":"2016-11-18T09:59:14Z","updated_at":"2017-02-19T17:12:11Z","pushed_at":"2017-02-25T04:47:26Z","git_url":"git://github.com/zkat/cacache.git","ssh_url":"git@github.com:zkat/cacache.git","clone_url":"https://github.com/zkat/cacache.git","svn_url":"https://github.com/zkat/cacache","homepage":null,"size":174,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":14,"forks":3,"open_issues":14,"watchers":13,"default_branch":"latest"}},"base":{"label":"zkat:latest","ref":"latest","sha":"84b66524e4beee7aa1733028cfde21dc6905dd96","user":{"login":"zkat","id":17535,"avatar_url":"https://avatars.githubusercontent.com/u/17535?v=3","gravatar_id":"","url":"https://api.github.com/users/zkat","html_url":"https://github.com/zkat","followers_url":"https://api.github.com/users/zkat/followers","following_url":"https://api.github.com/users/zkat/following{/other_user}","gists_url":"https://api.github.com/users/zkat/gists{/gist_id}","starred_url":"https://api.github.com/users/zkat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zkat/subscriptions","organizations_url":"https://api.github.com/users/zkat/orgs","repos_url":"https://api.github.com/users/zkat/repos","events_url":"https://api.github.com/users/zkat/events{/privacy}","received_events_url":"https://api.github.com/users/zkat/received_events","type":"User","site_admin":false},"repo":{"id":74117717,"name":"cacache","full_name":"zkat/cacache","owner":{"login":"zkat","id":17535,"avatar_url":"https://avatars.githubusercontent.com/u/17535?v=3","gravatar_id":"","url":"https://api.github.com/users/zkat","html_url":"https://github.com/zkat","followers_url":"https://api.github.com/users/zkat/followers","following_url":"https://api.github.com/users/zkat/following{/other_user}","gists_url":"https://api.github.com/users/zkat/gists{/gist_id}","starred_url":"https://api.github.com/users/zkat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zkat/subscriptions","organizations_url":"https://api.github.com/users/zkat/orgs","repos_url":"https://api.github.com/users/zkat/repos","events_url":"https://api.github.com/users/zkat/events{/privacy}","received_events_url":"https://api.github.com/users/zkat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zkat/cacache","description":"General content-addressable filesystem-based cache.","fork":false,"url":"https://api.github.com/repos/zkat/cacache","forks_url":"https://api.github.com/repos/zkat/cacache/forks","keys_url":"https://api.github.com/repos/zkat/cacache/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zkat/cacache/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zkat/cacache/teams","hooks_url":"https://api.github.com/repos/zkat/cacache/hooks","issue_events_url":"https://api.github.com/repos/zkat/cacache/issues/events{/number}","events_url":"https://api.github.com/repos/zkat/cacache/events","assignees_url":"https://api.github.com/repos/zkat/cacache/assignees{/user}","branches_url":"https://api.github.com/repos/zkat/cacache/branches{/branch}","tags_url":"https://api.github.com/repos/zkat/cacache/tags","blobs_url":"https://api.github.com/repos/zkat/cacache/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zkat/cacache/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zkat/cacache/git/refs{/sha}","trees_url":"https://api.github.com/repos/zkat/cacache/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zkat/cacache/statuses/{sha}","languages_url":"https://api.github.com/repos/zkat/cacache/languages","stargazers_url":"https://api.github.com/repos/zkat/cacache/stargazers","contributors_url":"https://api.github.com/repos/zkat/cacache/contributors","subscribers_url":"https://api.github.com/repos/zkat/cacache/subscribers","subscription_url":"https://api.github.com/repos/zkat/cacache/subscription","commits_url":"https://api.github.com/repos/zkat/cacache/commits{/sha}","git_commits_url":"https://api.github.com/repos/zkat/cacache/git/commits{/sha}","comments_url":"https://api.github.com/repos/zkat/cacache/comments{/number}","issue_comment_url":"https://api.github.com/repos/zkat/cacache/issues/comments{/number}","contents_url":"https://api.github.com/repos/zkat/cacache/contents/{+path}","compare_url":"https://api.github.com/repos/zkat/cacache/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zkat/cacache/merges","archive_url":"https://api.github.com/repos/zkat/cacache/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zkat/cacache/downloads","issues_url":"https://api.github.com/repos/zkat/cacache/issues{/number}","pulls_url":"https://api.github.com/repos/zkat/cacache/pulls{/number}","milestones_url":"https://api.github.com/repos/zkat/cacache/milestones{/number}","notifications_url":"https://api.github.com/repos/zkat/cacache/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zkat/cacache/labels{/name}","releases_url":"https://api.github.com/repos/zkat/cacache/releases{/id}","deployments_url":"https://api.github.com/repos/zkat/cacache/deployments","created_at":"2016-11-18T09:59:14Z","updated_at":"2017-02-19T17:12:11Z","pushed_at":"2017-02-25T04:47:26Z","git_url":"git://github.com/zkat/cacache.git","ssh_url":"git@github.com:zkat/cacache.git","clone_url":"https://github.com/zkat/cacache.git","svn_url":"https://github.com/zkat/cacache","homepage":null,"size":174,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":14,"forks":3,"open_issues":14,"watchers":13,"default_branch":"latest"}},"_links":{"self":{"href":"https://api.github.com/repos/zkat/cacache/pulls/39"},"html":{"href":"https://github.com/zkat/cacache/pull/39"},"issue":{"href":"https://api.github.com/repos/zkat/cacache/issues/39"},"comments":{"href":"https://api.github.com/repos/zkat/cacache/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/zkat/cacache/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/zkat/cacache/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zkat/cacache/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/zkat/cacache/statuses/1dafcd2fb161192434ad6a695209d000df47f1a5"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":4,"additions":348,"deletions":372,"changed_files":6}}
{"actor":{"display_login":"zkat"}}