{"action":"created","comment":{"url":"https://api.github.com/repos/fastify/fastify-mongodb/pulls/comments/184896599","pull_request_review_id":116180246,"id":184896599,"diff_hunk":"@@ -8,7 +8,13 @@ const MongoClient = MongoDb.MongoClient\n const ObjectId = MongoDb.ObjectId\n \n function decorateFastifyInstance (fastify, client, options, next) {\n-  fastify.addHook('onClose', (fastify, done) => client.close(done))\n+  fastify.addHook('onClose', (fastify, done) => {","path":"index.js","position":5,"original_position":5,"commit_id":"c1d61d958519b3987c31bcc222702d6b049ad707","original_commit_id":"c1d61d958519b3987c31bcc222702d6b049ad707","user":{"login":"mcollina","id":52195,"avatar_url":"https://avatars0.githubusercontent.com/u/52195?v=4","gravatar_id":"","url":"https://api.github.com/users/mcollina","html_url":"https://github.com/mcollina","followers_url":"https://api.github.com/users/mcollina/followers","following_url":"https://api.github.com/users/mcollina/following{/other_user}","gists_url":"https://api.github.com/users/mcollina/gists{/gist_id}","starred_url":"https://api.github.com/users/mcollina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcollina/subscriptions","organizations_url":"https://api.github.com/users/mcollina/orgs","repos_url":"https://api.github.com/users/mcollina/repos","events_url":"https://api.github.com/users/mcollina/events{/privacy}","received_events_url":"https://api.github.com/users/mcollina/received_events","type":"User","site_admin":false},"body":"👍 , I'll skip the hook then.","created_at":"2018-04-29T22:10:45Z","updated_at":"2018-04-29T22:10:45Z","html_url":"https://github.com/fastify/fastify-mongodb/pull/41#discussion_r184896599","pull_request_url":"https://api.github.com/repos/fastify/fastify-mongodb/pulls/41","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/fastify/fastify-mongodb/pulls/comments/184896599"},"html":{"href":"https://github.com/fastify/fastify-mongodb/pull/41#discussion_r184896599"},"pull_request":{"href":"https://api.github.com/repos/fastify/fastify-mongodb/pulls/41"}},"in_reply_to_id":184848862},"pull_request":{"url":"https://api.github.com/repos/fastify/fastify-mongodb/pulls/41","id":184771736,"html_url":"https://github.com/fastify/fastify-mongodb/pull/41","diff_url":"https://github.com/fastify/fastify-mongodb/pull/41.diff","patch_url":"https://github.com/fastify/fastify-mongodb/pull/41.patch","issue_url":"https://api.github.com/repos/fastify/fastify-mongodb/issues/41","number":41,"state":"open","locked":false,"title":"Do not automatically close the client passed in","user":{"login":"mcollina","id":52195,"avatar_url":"https://avatars0.githubusercontent.com/u/52195?v=4","gravatar_id":"","url":"https://api.github.com/users/mcollina","html_url":"https://github.com/mcollina","followers_url":"https://api.github.com/users/mcollina/followers","following_url":"https://api.github.com/users/mcollina/following{/other_user}","gists_url":"https://api.github.com/users/mcollina/gists{/gist_id}","starred_url":"https://api.github.com/users/mcollina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mcollina/subscriptions","organizations_url":"https://api.github.com/users/mcollina/orgs","repos_url":"https://api.github.com/users/mcollina/repos","events_url":"https://api.github.com/users/mcollina/events{/privacy}","received_events_url":"https://api.github.com/users/mcollina/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-28T08:07:57Z","updated_at":"2018-04-29T22:10:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0fa8416156d95414cd0d698f5195f17494076da1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fastify/fastify-mongodb/pulls/41/commits","review_comments_url":"https://api.github.com/repos/fastify/fastify-mongodb/pulls/41/comments","review_comment_url":"https://api.github.com/repos/fastify/fastify-mongodb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fastify/fastify-mongodb/issues/41/comments","statuses_url":"https://api.github.com/repos/fastify/fastify-mongodb/statuses/c1d61d958519b3987c31bcc222702d6b049ad707","head":{"label":"fastify:do-not-close-with-client","ref":"do-not-close-with-client","sha":"c1d61d958519b3987c31bcc222702d6b049ad707","user":{"login":"fastify","id":24939410,"avatar_url":"https://avatars3.githubusercontent.com/u/24939410?v=4","gravatar_id":"","url":"https://api.github.com/users/fastify","html_url":"https://github.com/fastify","followers_url":"https://api.github.com/users/fastify/followers","following_url":"https://api.github.com/users/fastify/following{/other_user}","gists_url":"https://api.github.com/users/fastify/gists{/gist_id}","starred_url":"https://api.github.com/users/fastify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastify/subscriptions","organizations_url":"https://api.github.com/users/fastify/orgs","repos_url":"https://api.github.com/users/fastify/repos","events_url":"https://api.github.com/users/fastify/events{/privacy}","received_events_url":"https://api.github.com/users/fastify/received_events","type":"Organization","site_admin":false},"repo":{"id":87167477,"name":"fastify-mongodb","full_name":"fastify/fastify-mongodb","owner":{"login":"fastify","id":24939410,"avatar_url":"https://avatars3.githubusercontent.com/u/24939410?v=4","gravatar_id":"","url":"https://api.github.com/users/fastify","html_url":"https://github.com/fastify","followers_url":"https://api.github.com/users/fastify/followers","following_url":"https://api.github.com/users/fastify/following{/other_user}","gists_url":"https://api.github.com/users/fastify/gists{/gist_id}","starred_url":"https://api.github.com/users/fastify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastify/subscriptions","organizations_url":"https://api.github.com/users/fastify/orgs","repos_url":"https://api.github.com/users/fastify/repos","events_url":"https://api.github.com/users/fastify/events{/privacy}","received_events_url":"https://api.github.com/users/fastify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fastify/fastify-mongodb","description":"Fastify MongoDB connection plugin","fork":false,"url":"https://api.github.com/repos/fastify/fastify-mongodb","forks_url":"https://api.github.com/repos/fastify/fastify-mongodb/forks","keys_url":"https://api.github.com/repos/fastify/fastify-mongodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fastify/fastify-mongodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fastify/fastify-mongodb/teams","hooks_url":"https://api.github.com/repos/fastify/fastify-mongodb/hooks","issue_events_url":"https://api.github.com/repos/fastify/fastify-mongodb/issues/events{/number}","events_url":"https://api.github.com/repos/fastify/fastify-mongodb/events","assignees_url":"https://api.github.com/repos/fastify/fastify-mongodb/assignees{/user}","branches_url":"https://api.github.com/repos/fastify/fastify-mongodb/branches{/branch}","tags_url":"https://api.github.com/repos/fastify/fastify-mongodb/tags","blobs_url":"https://api.github.com/repos/fastify/fastify-mongodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fastify/fastify-mongodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fastify/fastify-mongodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/fastify/fastify-mongodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fastify/fastify-mongodb/statuses/{sha}","languages_url":"https://api.github.com/repos/fastify/fastify-mongodb/languages","stargazers_url":"https://api.github.com/repos/fastify/fastify-mongodb/stargazers","contributors_url":"https://api.github.com/repos/fastify/fastify-mongodb/contributors","subscribers_url":"https://api.github.com/repos/fastify/fastify-mongodb/subscribers","subscription_url":"https://api.github.com/repos/fastify/fastify-mongodb/subscription","commits_url":"https://api.github.com/repos/fastify/fastify-mongodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/fastify/fastify-mongodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/fastify/fastify-mongodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/fastify/fastify-mongodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/fastify/fastify-mongodb/contents/{+path}","compare_url":"https://api.github.com/repos/fastify/fastify-mongodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fastify/fastify-mongodb/merges","archive_url":"https://api.github.com/repos/fastify/fastify-mongodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fastify/fastify-mongodb/downloads","issues_url":"https://api.github.com/repos/fastify/fastify-mongodb/issues{/number}","pulls_url":"https://api.github.com/repos/fastify/fastify-mongodb/pulls{/number}","milestones_url":"https://api.github.com/repos/fastify/fastify-mongodb/milestones{/number}","notifications_url":"https://api.github.com/repos/fastify/fastify-mongodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fastify/fastify-mongodb/labels{/name}","releases_url":"https://api.github.com/repos/fastify/fastify-mongodb/releases{/id}","deployments_url":"https://api.github.com/repos/fastify/fastify-mongodb/deployments","created_at":"2017-04-04T09:12:49Z","updated_at":"2018-04-29T09:21:59Z","pushed_at":"2018-04-29T09:21:57Z","git_url":"git://github.com/fastify/fastify-mongodb.git","ssh_url":"git@github.com:fastify/fastify-mongodb.git","clone_url":"https://github.com/fastify/fastify-mongodb.git","svn_url":"https://github.com/fastify/fastify-mongodb","homepage":null,"size":28,"stargazers_count":37,"watchers_count":37,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":12,"open_issues":4,"watchers":37,"default_branch":"master"}},"base":{"label":"fastify:master","ref":"master","sha":"c9bde25b311b3925f003daf2ea9675d7583cfa4f","user":{"login":"fastify","id":24939410,"avatar_url":"https://avatars3.githubusercontent.com/u/24939410?v=4","gravatar_id":"","url":"https://api.github.com/users/fastify","html_url":"https://github.com/fastify","followers_url":"https://api.github.com/users/fastify/followers","following_url":"https://api.github.com/users/fastify/following{/other_user}","gists_url":"https://api.github.com/users/fastify/gists{/gist_id}","starred_url":"https://api.github.com/users/fastify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastify/subscriptions","organizations_url":"https://api.github.com/users/fastify/orgs","repos_url":"https://api.github.com/users/fastify/repos","events_url":"https://api.github.com/users/fastify/events{/privacy}","received_events_url":"https://api.github.com/users/fastify/received_events","type":"Organization","site_admin":false},"repo":{"id":87167477,"name":"fastify-mongodb","full_name":"fastify/fastify-mongodb","owner":{"login":"fastify","id":24939410,"avatar_url":"https://avatars3.githubusercontent.com/u/24939410?v=4","gravatar_id":"","url":"https://api.github.com/users/fastify","html_url":"https://github.com/fastify","followers_url":"https://api.github.com/users/fastify/followers","following_url":"https://api.github.com/users/fastify/following{/other_user}","gists_url":"https://api.github.com/users/fastify/gists{/gist_id}","starred_url":"https://api.github.com/users/fastify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastify/subscriptions","organizations_url":"https://api.github.com/users/fastify/orgs","repos_url":"https://api.github.com/users/fastify/repos","events_url":"https://api.github.com/users/fastify/events{/privacy}","received_events_url":"https://api.github.com/users/fastify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fastify/fastify-mongodb","description":"Fastify MongoDB connection plugin","fork":false,"url":"https://api.github.com/repos/fastify/fastify-mongodb","forks_url":"https://api.github.com/repos/fastify/fastify-mongodb/forks","keys_url":"https://api.github.com/repos/fastify/fastify-mongodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fastify/fastify-mongodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fastify/fastify-mongodb/teams","hooks_url":"https://api.github.com/repos/fastify/fastify-mongodb/hooks","issue_events_url":"https://api.github.com/repos/fastify/fastify-mongodb/issues/events{/number}","events_url":"https://api.github.com/repos/fastify/fastify-mongodb/events","assignees_url":"https://api.github.com/repos/fastify/fastify-mongodb/assignees{/user}","branches_url":"https://api.github.com/repos/fastify/fastify-mongodb/branches{/branch}","tags_url":"https://api.github.com/repos/fastify/fastify-mongodb/tags","blobs_url":"https://api.github.com/repos/fastify/fastify-mongodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fastify/fastify-mongodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fastify/fastify-mongodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/fastify/fastify-mongodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fastify/fastify-mongodb/statuses/{sha}","languages_url":"https://api.github.com/repos/fastify/fastify-mongodb/languages","stargazers_url":"https://api.github.com/repos/fastify/fastify-mongodb/stargazers","contributors_url":"https://api.github.com/repos/fastify/fastify-mongodb/contributors","subscribers_url":"https://api.github.com/repos/fastify/fastify-mongodb/subscribers","subscription_url":"https://api.github.com/repos/fastify/fastify-mongodb/subscription","commits_url":"https://api.github.com/repos/fastify/fastify-mongodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/fastify/fastify-mongodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/fastify/fastify-mongodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/fastify/fastify-mongodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/fastify/fastify-mongodb/contents/{+path}","compare_url":"https://api.github.com/repos/fastify/fastify-mongodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fastify/fastify-mongodb/merges","archive_url":"https://api.github.com/repos/fastify/fastify-mongodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fastify/fastify-mongodb/downloads","issues_url":"https://api.github.com/repos/fastify/fastify-mongodb/issues{/number}","pulls_url":"https://api.github.com/repos/fastify/fastify-mongodb/pulls{/number}","milestones_url":"https://api.github.com/repos/fastify/fastify-mongodb/milestones{/number}","notifications_url":"https://api.github.com/repos/fastify/fastify-mongodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fastify/fastify-mongodb/labels{/name}","releases_url":"https://api.github.com/repos/fastify/fastify-mongodb/releases{/id}","deployments_url":"https://api.github.com/repos/fastify/fastify-mongodb/deployments","created_at":"2017-04-04T09:12:49Z","updated_at":"2018-04-29T09:21:59Z","pushed_at":"2018-04-29T09:21:57Z","git_url":"git://github.com/fastify/fastify-mongodb.git","ssh_url":"git@github.com:fastify/fastify-mongodb.git","clone_url":"https://github.com/fastify/fastify-mongodb.git","svn_url":"https://github.com/fastify/fastify-mongodb","homepage":null,"size":28,"stargazers_count":37,"watchers_count":37,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":12,"open_issues":4,"watchers":37,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fastify/fastify-mongodb/pulls/41"},"html":{"href":"https://github.com/fastify/fastify-mongodb/pull/41"},"issue":{"href":"https://api.github.com/repos/fastify/fastify-mongodb/issues/41"},"comments":{"href":"https://api.github.com/repos/fastify/fastify-mongodb/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/fastify/fastify-mongodb/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/fastify/fastify-mongodb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fastify/fastify-mongodb/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/fastify/fastify-mongodb/statuses/c1d61d958519b3987c31bcc222702d6b049ad707"}},"author_association":"OWNER"}}
{"actor":{"display_login":"mcollina"}}