{"action":"created","comment":{"url":"https://api.github.com/repos/influentialpublishers/got-couch/pulls/comments/88140977","pull_request_review_id":8723869,"id":88140977,"diff_hunk":"@@ -54,6 +54,14 @@ module.exports = R.curry((server_url, Client) => {\n       Client.put( DEFAULT_HEADERS, BucketUrl(bucket, docid), doc )\n     )\n \n+    // revid is the latest revision id needed to update an existing document\n+  , upsert: R.curry((bucket, docid, revid, doc) => {","path":"lib/driver.js","position":5,"original_position":5,"commit_id":"38b9d9779840a4830da0276c7e7dd4061cbcd41d","original_commit_id":"38b9d9779840a4830da0276c7e7dd4061cbcd41d","user":{"login":"scull7","id":234352,"avatar_url":"https://avatars.githubusercontent.com/u/234352?v=3","gravatar_id":"","url":"https://api.github.com/users/scull7","html_url":"https://github.com/scull7","followers_url":"https://api.github.com/users/scull7/followers","following_url":"https://api.github.com/users/scull7/following{/other_user}","gists_url":"https://api.github.com/users/scull7/gists{/gist_id}","starred_url":"https://api.github.com/users/scull7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scull7/subscriptions","organizations_url":"https://api.github.com/users/scull7/orgs","repos_url":"https://api.github.com/users/scull7/repos","events_url":"https://api.github.com/users/scull7/events{/privacy}","received_events_url":"https://api.github.com/users/scull7/received_events","type":"User","site_admin":false},"body":"yes, there will be an update function on the `got-couch` side.  but we should not be using that.  we should be using the methods from the `kuss` abstraction layer.  ","created_at":"2016-11-15T23:50:06Z","updated_at":"2016-11-15T23:50:06Z","html_url":"https://github.com/influentialpublishers/got-couch/pull/4#discussion_r88140977","pull_request_url":"https://api.github.com/repos/influentialpublishers/got-couch/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/influentialpublishers/got-couch/pulls/comments/88140977"},"html":{"href":"https://github.com/influentialpublishers/got-couch/pull/4#discussion_r88140977"},"pull_request":{"href":"https://api.github.com/repos/influentialpublishers/got-couch/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/influentialpublishers/got-couch/pulls/4","id":93865464,"html_url":"https://github.com/influentialpublishers/got-couch/pull/4","diff_url":"https://github.com/influentialpublishers/got-couch/pull/4.diff","patch_url":"https://github.com/influentialpublishers/got-couch/pull/4.patch","issue_url":"https://api.github.com/repos/influentialpublishers/got-couch/issues/4","number":4,"state":"open","locked":false,"title":"Add upsert (with tests)","user":{"login":"eostretsov","id":17837688,"avatar_url":"https://avatars.githubusercontent.com/u/17837688?v=3","gravatar_id":"","url":"https://api.github.com/users/eostretsov","html_url":"https://github.com/eostretsov","followers_url":"https://api.github.com/users/eostretsov/followers","following_url":"https://api.github.com/users/eostretsov/following{/other_user}","gists_url":"https://api.github.com/users/eostretsov/gists{/gist_id}","starred_url":"https://api.github.com/users/eostretsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eostretsov/subscriptions","organizations_url":"https://api.github.com/users/eostretsov/orgs","repos_url":"https://api.github.com/users/eostretsov/repos","events_url":"https://api.github.com/users/eostretsov/events{/privacy}","received_events_url":"https://api.github.com/users/eostretsov/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-15T22:51:59Z","updated_at":"2016-11-15T23:50:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e70d06018b5e6d547dcd26fc2246fe5cf133c1c0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/influentialpublishers/got-couch/pulls/4/commits","review_comments_url":"https://api.github.com/repos/influentialpublishers/got-couch/pulls/4/comments","review_comment_url":"https://api.github.com/repos/influentialpublishers/got-couch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/influentialpublishers/got-couch/issues/4/comments","statuses_url":"https://api.github.com/repos/influentialpublishers/got-couch/statuses/38b9d9779840a4830da0276c7e7dd4061cbcd41d","head":{"label":"eostretsov:add-upsert","ref":"add-upsert","sha":"38b9d9779840a4830da0276c7e7dd4061cbcd41d","user":{"login":"eostretsov","id":17837688,"avatar_url":"https://avatars.githubusercontent.com/u/17837688?v=3","gravatar_id":"","url":"https://api.github.com/users/eostretsov","html_url":"https://github.com/eostretsov","followers_url":"https://api.github.com/users/eostretsov/followers","following_url":"https://api.github.com/users/eostretsov/following{/other_user}","gists_url":"https://api.github.com/users/eostretsov/gists{/gist_id}","starred_url":"https://api.github.com/users/eostretsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eostretsov/subscriptions","organizations_url":"https://api.github.com/users/eostretsov/orgs","repos_url":"https://api.github.com/users/eostretsov/repos","events_url":"https://api.github.com/users/eostretsov/events{/privacy}","received_events_url":"https://api.github.com/users/eostretsov/received_events","type":"User","site_admin":false},"repo":{"id":73862154,"name":"got-couch","full_name":"eostretsov/got-couch","owner":{"login":"eostretsov","id":17837688,"avatar_url":"https://avatars.githubusercontent.com/u/17837688?v=3","gravatar_id":"","url":"https://api.github.com/users/eostretsov","html_url":"https://github.com/eostretsov","followers_url":"https://api.github.com/users/eostretsov/followers","following_url":"https://api.github.com/users/eostretsov/following{/other_user}","gists_url":"https://api.github.com/users/eostretsov/gists{/gist_id}","starred_url":"https://api.github.com/users/eostretsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eostretsov/subscriptions","organizations_url":"https://api.github.com/users/eostretsov/orgs","repos_url":"https://api.github.com/users/eostretsov/repos","events_url":"https://api.github.com/users/eostretsov/events{/privacy}","received_events_url":"https://api.github.com/users/eostretsov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eostretsov/got-couch","description":"A got based couch driver/interface","fork":true,"url":"https://api.github.com/repos/eostretsov/got-couch","forks_url":"https://api.github.com/repos/eostretsov/got-couch/forks","keys_url":"https://api.github.com/repos/eostretsov/got-couch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eostretsov/got-couch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eostretsov/got-couch/teams","hooks_url":"https://api.github.com/repos/eostretsov/got-couch/hooks","issue_events_url":"https://api.github.com/repos/eostretsov/got-couch/issues/events{/number}","events_url":"https://api.github.com/repos/eostretsov/got-couch/events","assignees_url":"https://api.github.com/repos/eostretsov/got-couch/assignees{/user}","branches_url":"https://api.github.com/repos/eostretsov/got-couch/branches{/branch}","tags_url":"https://api.github.com/repos/eostretsov/got-couch/tags","blobs_url":"https://api.github.com/repos/eostretsov/got-couch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eostretsov/got-couch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eostretsov/got-couch/git/refs{/sha}","trees_url":"https://api.github.com/repos/eostretsov/got-couch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eostretsov/got-couch/statuses/{sha}","languages_url":"https://api.github.com/repos/eostretsov/got-couch/languages","stargazers_url":"https://api.github.com/repos/eostretsov/got-couch/stargazers","contributors_url":"https://api.github.com/repos/eostretsov/got-couch/contributors","subscribers_url":"https://api.github.com/repos/eostretsov/got-couch/subscribers","subscription_url":"https://api.github.com/repos/eostretsov/got-couch/subscription","commits_url":"https://api.github.com/repos/eostretsov/got-couch/commits{/sha}","git_commits_url":"https://api.github.com/repos/eostretsov/got-couch/git/commits{/sha}","comments_url":"https://api.github.com/repos/eostretsov/got-couch/comments{/number}","issue_comment_url":"https://api.github.com/repos/eostretsov/got-couch/issues/comments{/number}","contents_url":"https://api.github.com/repos/eostretsov/got-couch/contents/{+path}","compare_url":"https://api.github.com/repos/eostretsov/got-couch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eostretsov/got-couch/merges","archive_url":"https://api.github.com/repos/eostretsov/got-couch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eostretsov/got-couch/downloads","issues_url":"https://api.github.com/repos/eostretsov/got-couch/issues{/number}","pulls_url":"https://api.github.com/repos/eostretsov/got-couch/pulls{/number}","milestones_url":"https://api.github.com/repos/eostretsov/got-couch/milestones{/number}","notifications_url":"https://api.github.com/repos/eostretsov/got-couch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eostretsov/got-couch/labels{/name}","releases_url":"https://api.github.com/repos/eostretsov/got-couch/releases{/id}","deployments_url":"https://api.github.com/repos/eostretsov/got-couch/deployments","created_at":"2016-11-15T22:46:58Z","updated_at":"2016-11-15T22:47:00Z","pushed_at":"2016-11-15T23:27:33Z","git_url":"git://github.com/eostretsov/got-couch.git","ssh_url":"git@github.com:eostretsov/got-couch.git","clone_url":"https://github.com/eostretsov/got-couch.git","svn_url":"https://github.com/eostretsov/got-couch","homepage":null,"size":56,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"influentialpublishers:master","ref":"master","sha":"9df651110a5d3ca19c6b6b7e5b08d707742786e6","user":{"login":"influentialpublishers","id":6587606,"avatar_url":"https://avatars.githubusercontent.com/u/6587606?v=3","gravatar_id":"","url":"https://api.github.com/users/influentialpublishers","html_url":"https://github.com/influentialpublishers","followers_url":"https://api.github.com/users/influentialpublishers/followers","following_url":"https://api.github.com/users/influentialpublishers/following{/other_user}","gists_url":"https://api.github.com/users/influentialpublishers/gists{/gist_id}","starred_url":"https://api.github.com/users/influentialpublishers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influentialpublishers/subscriptions","organizations_url":"https://api.github.com/users/influentialpublishers/orgs","repos_url":"https://api.github.com/users/influentialpublishers/repos","events_url":"https://api.github.com/users/influentialpublishers/events{/privacy}","received_events_url":"https://api.github.com/users/influentialpublishers/received_events","type":"Organization","site_admin":false},"repo":{"id":71948881,"name":"got-couch","full_name":"influentialpublishers/got-couch","owner":{"login":"influentialpublishers","id":6587606,"avatar_url":"https://avatars.githubusercontent.com/u/6587606?v=3","gravatar_id":"","url":"https://api.github.com/users/influentialpublishers","html_url":"https://github.com/influentialpublishers","followers_url":"https://api.github.com/users/influentialpublishers/followers","following_url":"https://api.github.com/users/influentialpublishers/following{/other_user}","gists_url":"https://api.github.com/users/influentialpublishers/gists{/gist_id}","starred_url":"https://api.github.com/users/influentialpublishers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influentialpublishers/subscriptions","organizations_url":"https://api.github.com/users/influentialpublishers/orgs","repos_url":"https://api.github.com/users/influentialpublishers/repos","events_url":"https://api.github.com/users/influentialpublishers/events{/privacy}","received_events_url":"https://api.github.com/users/influentialpublishers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/influentialpublishers/got-couch","description":"A got based couch driver/interface","fork":false,"url":"https://api.github.com/repos/influentialpublishers/got-couch","forks_url":"https://api.github.com/repos/influentialpublishers/got-couch/forks","keys_url":"https://api.github.com/repos/influentialpublishers/got-couch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influentialpublishers/got-couch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influentialpublishers/got-couch/teams","hooks_url":"https://api.github.com/repos/influentialpublishers/got-couch/hooks","issue_events_url":"https://api.github.com/repos/influentialpublishers/got-couch/issues/events{/number}","events_url":"https://api.github.com/repos/influentialpublishers/got-couch/events","assignees_url":"https://api.github.com/repos/influentialpublishers/got-couch/assignees{/user}","branches_url":"https://api.github.com/repos/influentialpublishers/got-couch/branches{/branch}","tags_url":"https://api.github.com/repos/influentialpublishers/got-couch/tags","blobs_url":"https://api.github.com/repos/influentialpublishers/got-couch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influentialpublishers/got-couch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influentialpublishers/got-couch/git/refs{/sha}","trees_url":"https://api.github.com/repos/influentialpublishers/got-couch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influentialpublishers/got-couch/statuses/{sha}","languages_url":"https://api.github.com/repos/influentialpublishers/got-couch/languages","stargazers_url":"https://api.github.com/repos/influentialpublishers/got-couch/stargazers","contributors_url":"https://api.github.com/repos/influentialpublishers/got-couch/contributors","subscribers_url":"https://api.github.com/repos/influentialpublishers/got-couch/subscribers","subscription_url":"https://api.github.com/repos/influentialpublishers/got-couch/subscription","commits_url":"https://api.github.com/repos/influentialpublishers/got-couch/commits{/sha}","git_commits_url":"https://api.github.com/repos/influentialpublishers/got-couch/git/commits{/sha}","comments_url":"https://api.github.com/repos/influentialpublishers/got-couch/comments{/number}","issue_comment_url":"https://api.github.com/repos/influentialpublishers/got-couch/issues/comments{/number}","contents_url":"https://api.github.com/repos/influentialpublishers/got-couch/contents/{+path}","compare_url":"https://api.github.com/repos/influentialpublishers/got-couch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influentialpublishers/got-couch/merges","archive_url":"https://api.github.com/repos/influentialpublishers/got-couch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influentialpublishers/got-couch/downloads","issues_url":"https://api.github.com/repos/influentialpublishers/got-couch/issues{/number}","pulls_url":"https://api.github.com/repos/influentialpublishers/got-couch/pulls{/number}","milestones_url":"https://api.github.com/repos/influentialpublishers/got-couch/milestones{/number}","notifications_url":"https://api.github.com/repos/influentialpublishers/got-couch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influentialpublishers/got-couch/labels{/name}","releases_url":"https://api.github.com/repos/influentialpublishers/got-couch/releases{/id}","deployments_url":"https://api.github.com/repos/influentialpublishers/got-couch/deployments","created_at":"2016-10-25T23:55:26Z","updated_at":"2016-11-09T01:24:24Z","pushed_at":"2016-11-15T23:27:37Z","git_url":"git://github.com/influentialpublishers/got-couch.git","ssh_url":"git@github.com:influentialpublishers/got-couch.git","clone_url":"https://github.com/influentialpublishers/got-couch.git","svn_url":"https://github.com/influentialpublishers/got-couch","homepage":null,"size":56,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/influentialpublishers/got-couch/pulls/4"},"html":{"href":"https://github.com/influentialpublishers/got-couch/pull/4"},"issue":{"href":"https://api.github.com/repos/influentialpublishers/got-couch/issues/4"},"comments":{"href":"https://api.github.com/repos/influentialpublishers/got-couch/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/influentialpublishers/got-couch/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/influentialpublishers/got-couch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/influentialpublishers/got-couch/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/influentialpublishers/got-couch/statuses/38b9d9779840a4830da0276c7e7dd4061cbcd41d"}}}}
{"actor":{"display_login":"scull7"}}