{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/fjl/go-couchdb/pulls/2","id":32968722,"html_url":"https://github.com/fjl/go-couchdb/pull/2","diff_url":"https://github.com/fjl/go-couchdb/pull/2.diff","patch_url":"https://github.com/fjl/go-couchdb/pull/2.patch","issue_url":"https://api.github.com/repos/fjl/go-couchdb/issues/2","number":2,"state":"open","locked":false,"title":"added DB.Post() function for creating docs in the database with generated document IDs","user":{"login":"pegli","id":324442,"avatar_url":"https://avatars.githubusercontent.com/u/324442?v=3","gravatar_id":"","url":"https://api.github.com/users/pegli","html_url":"https://github.com/pegli","followers_url":"https://api.github.com/users/pegli/followers","following_url":"https://api.github.com/users/pegli/following{/other_user}","gists_url":"https://api.github.com/users/pegli/gists{/gist_id}","starred_url":"https://api.github.com/users/pegli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pegli/subscriptions","organizations_url":"https://api.github.com/users/pegli/orgs","repos_url":"https://api.github.com/users/pegli/repos","events_url":"https://api.github.com/users/pegli/events{/privacy}","received_events_url":"https://api.github.com/users/pegli/received_events","type":"User","site_admin":false},"body":"I almost always let CouchDB generate my document IDs for me, so I've added a function to the DB type that sends the doc as a post as per http://couchdb.readthedocs.org/en/1.6.1/api/database/common.html#post--db.","created_at":"2015-04-09T15:48:59Z","updated_at":"2015-04-09T15:48:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fjl/go-couchdb/pulls/2/commits","review_comments_url":"https://api.github.com/repos/fjl/go-couchdb/pulls/2/comments","review_comment_url":"https://api.github.com/repos/fjl/go-couchdb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fjl/go-couchdb/issues/2/comments","statuses_url":"https://api.github.com/repos/fjl/go-couchdb/statuses/94a43d3cf4b538a00281a260b8f0bf6030edff91","head":{"label":"pegli:feature/db_post","ref":"feature/db_post","sha":"94a43d3cf4b538a00281a260b8f0bf6030edff91","user":{"login":"pegli","id":324442,"avatar_url":"https://avatars.githubusercontent.com/u/324442?v=3","gravatar_id":"","url":"https://api.github.com/users/pegli","html_url":"https://github.com/pegli","followers_url":"https://api.github.com/users/pegli/followers","following_url":"https://api.github.com/users/pegli/following{/other_user}","gists_url":"https://api.github.com/users/pegli/gists{/gist_id}","starred_url":"https://api.github.com/users/pegli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pegli/subscriptions","organizations_url":"https://api.github.com/users/pegli/orgs","repos_url":"https://api.github.com/users/pegli/repos","events_url":"https://api.github.com/users/pegli/events{/privacy}","received_events_url":"https://api.github.com/users/pegli/received_events","type":"User","site_admin":false},"repo":{"id":33637731,"name":"go-couchdb","full_name":"pegli/go-couchdb","owner":{"login":"pegli","id":324442,"avatar_url":"https://avatars.githubusercontent.com/u/324442?v=3","gravatar_id":"","url":"https://api.github.com/users/pegli","html_url":"https://github.com/pegli","followers_url":"https://api.github.com/users/pegli/followers","following_url":"https://api.github.com/users/pegli/following{/other_user}","gists_url":"https://api.github.com/users/pegli/gists{/gist_id}","starred_url":"https://api.github.com/users/pegli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pegli/subscriptions","organizations_url":"https://api.github.com/users/pegli/orgs","repos_url":"https://api.github.com/users/pegli/repos","events_url":"https://api.github.com/users/pegli/events{/privacy}","received_events_url":"https://api.github.com/users/pegli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pegli/go-couchdb","description":"Yet another CouchDB HTTP API wrapper for Go","fork":true,"url":"https://api.github.com/repos/pegli/go-couchdb","forks_url":"https://api.github.com/repos/pegli/go-couchdb/forks","keys_url":"https://api.github.com/repos/pegli/go-couchdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pegli/go-couchdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pegli/go-couchdb/teams","hooks_url":"https://api.github.com/repos/pegli/go-couchdb/hooks","issue_events_url":"https://api.github.com/repos/pegli/go-couchdb/issues/events{/number}","events_url":"https://api.github.com/repos/pegli/go-couchdb/events","assignees_url":"https://api.github.com/repos/pegli/go-couchdb/assignees{/user}","branches_url":"https://api.github.com/repos/pegli/go-couchdb/branches{/branch}","tags_url":"https://api.github.com/repos/pegli/go-couchdb/tags","blobs_url":"https://api.github.com/repos/pegli/go-couchdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pegli/go-couchdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pegli/go-couchdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/pegli/go-couchdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pegli/go-couchdb/statuses/{sha}","languages_url":"https://api.github.com/repos/pegli/go-couchdb/languages","stargazers_url":"https://api.github.com/repos/pegli/go-couchdb/stargazers","contributors_url":"https://api.github.com/repos/pegli/go-couchdb/contributors","subscribers_url":"https://api.github.com/repos/pegli/go-couchdb/subscribers","subscription_url":"https://api.github.com/repos/pegli/go-couchdb/subscription","commits_url":"https://api.github.com/repos/pegli/go-couchdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/pegli/go-couchdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/pegli/go-couchdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/pegli/go-couchdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/pegli/go-couchdb/contents/{+path}","compare_url":"https://api.github.com/repos/pegli/go-couchdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pegli/go-couchdb/merges","archive_url":"https://api.github.com/repos/pegli/go-couchdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pegli/go-couchdb/downloads","issues_url":"https://api.github.com/repos/pegli/go-couchdb/issues{/number}","pulls_url":"https://api.github.com/repos/pegli/go-couchdb/pulls{/number}","milestones_url":"https://api.github.com/repos/pegli/go-couchdb/milestones{/number}","notifications_url":"https://api.github.com/repos/pegli/go-couchdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pegli/go-couchdb/labels{/name}","releases_url":"https://api.github.com/repos/pegli/go-couchdb/releases{/id}","created_at":"2015-04-08T23:27:25Z","updated_at":"2015-04-08T23:27:26Z","pushed_at":"2015-04-09T15:46:18Z","git_url":"git://github.com/pegli/go-couchdb.git","ssh_url":"git@github.com:pegli/go-couchdb.git","clone_url":"https://github.com/pegli/go-couchdb.git","svn_url":"https://github.com/pegli/go-couchdb","homepage":null,"size":364,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"fjl:master","ref":"master","sha":"1f327c218d24c98ba4067e086a2787c1488ba558","user":{"login":"fjl","id":6915,"avatar_url":"https://avatars.githubusercontent.com/u/6915?v=3","gravatar_id":"","url":"https://api.github.com/users/fjl","html_url":"https://github.com/fjl","followers_url":"https://api.github.com/users/fjl/followers","following_url":"https://api.github.com/users/fjl/following{/other_user}","gists_url":"https://api.github.com/users/fjl/gists{/gist_id}","starred_url":"https://api.github.com/users/fjl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjl/subscriptions","organizations_url":"https://api.github.com/users/fjl/orgs","repos_url":"https://api.github.com/users/fjl/repos","events_url":"https://api.github.com/users/fjl/events{/privacy}","received_events_url":"https://api.github.com/users/fjl/received_events","type":"User","site_admin":false},"repo":{"id":13913697,"name":"go-couchdb","full_name":"fjl/go-couchdb","owner":{"login":"fjl","id":6915,"avatar_url":"https://avatars.githubusercontent.com/u/6915?v=3","gravatar_id":"","url":"https://api.github.com/users/fjl","html_url":"https://github.com/fjl","followers_url":"https://api.github.com/users/fjl/followers","following_url":"https://api.github.com/users/fjl/following{/other_user}","gists_url":"https://api.github.com/users/fjl/gists{/gist_id}","starred_url":"https://api.github.com/users/fjl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fjl/subscriptions","organizations_url":"https://api.github.com/users/fjl/orgs","repos_url":"https://api.github.com/users/fjl/repos","events_url":"https://api.github.com/users/fjl/events{/privacy}","received_events_url":"https://api.github.com/users/fjl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fjl/go-couchdb","description":"Yet another CouchDB HTTP API wrapper for Go","fork":false,"url":"https://api.github.com/repos/fjl/go-couchdb","forks_url":"https://api.github.com/repos/fjl/go-couchdb/forks","keys_url":"https://api.github.com/repos/fjl/go-couchdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fjl/go-couchdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fjl/go-couchdb/teams","hooks_url":"https://api.github.com/repos/fjl/go-couchdb/hooks","issue_events_url":"https://api.github.com/repos/fjl/go-couchdb/issues/events{/number}","events_url":"https://api.github.com/repos/fjl/go-couchdb/events","assignees_url":"https://api.github.com/repos/fjl/go-couchdb/assignees{/user}","branches_url":"https://api.github.com/repos/fjl/go-couchdb/branches{/branch}","tags_url":"https://api.github.com/repos/fjl/go-couchdb/tags","blobs_url":"https://api.github.com/repos/fjl/go-couchdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fjl/go-couchdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fjl/go-couchdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/fjl/go-couchdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fjl/go-couchdb/statuses/{sha}","languages_url":"https://api.github.com/repos/fjl/go-couchdb/languages","stargazers_url":"https://api.github.com/repos/fjl/go-couchdb/stargazers","contributors_url":"https://api.github.com/repos/fjl/go-couchdb/contributors","subscribers_url":"https://api.github.com/repos/fjl/go-couchdb/subscribers","subscription_url":"https://api.github.com/repos/fjl/go-couchdb/subscription","commits_url":"https://api.github.com/repos/fjl/go-couchdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/fjl/go-couchdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/fjl/go-couchdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/fjl/go-couchdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/fjl/go-couchdb/contents/{+path}","compare_url":"https://api.github.com/repos/fjl/go-couchdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fjl/go-couchdb/merges","archive_url":"https://api.github.com/repos/fjl/go-couchdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fjl/go-couchdb/downloads","issues_url":"https://api.github.com/repos/fjl/go-couchdb/issues{/number}","pulls_url":"https://api.github.com/repos/fjl/go-couchdb/pulls{/number}","milestones_url":"https://api.github.com/repos/fjl/go-couchdb/milestones{/number}","notifications_url":"https://api.github.com/repos/fjl/go-couchdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fjl/go-couchdb/labels{/name}","releases_url":"https://api.github.com/repos/fjl/go-couchdb/releases{/id}","created_at":"2013-10-28T01:08:16Z","updated_at":"2015-04-05T11:25:06Z","pushed_at":"2014-07-05T12:35:28Z","git_url":"git://github.com/fjl/go-couchdb.git","ssh_url":"git@github.com:fjl/go-couchdb.git","clone_url":"https://github.com/fjl/go-couchdb.git","svn_url":"https://github.com/fjl/go-couchdb","homepage":null,"size":364,"stargazers_count":20,"watchers_count":20,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":2,"forks":6,"open_issues":2,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fjl/go-couchdb/pulls/2"},"html":{"href":"https://github.com/fjl/go-couchdb/pull/2"},"issue":{"href":"https://api.github.com/repos/fjl/go-couchdb/issues/2"},"comments":{"href":"https://api.github.com/repos/fjl/go-couchdb/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/fjl/go-couchdb/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/fjl/go-couchdb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fjl/go-couchdb/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/fjl/go-couchdb/statuses/94a43d3cf4b538a00281a260b8f0bf6030edff91"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":80,"deletions":0,"changed_files":2}}