{"action":"created","comment":{"url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/pulls/comments/65266233","id":65266233,"diff_hunk":"@@ -0,0 +1,33 @@\n+module.exports = function connect( dbURI ) {\n+\n+  const mongoose = require( 'mongoose' );\n+\n+  mongoose.Promise = Promise;\n+  mongoose.connect( dbURI );\n+\n+  // CONNECTION EVENTS\n+  // When successfully connected\n+  mongoose.connection.on('connected', function () {","path":"lib/setup-mongoose.js","position":10,"original_position":10,"commit_id":"1c98a129016147440f3d64ef25573a7cdcf72356","original_commit_id":"1c98a129016147440f3d64ef25573a7cdcf72356","user":{"login":"ankihg","id":15968660,"avatar_url":"https://avatars.githubusercontent.com/u/15968660?v=3","gravatar_id":"","url":"https://api.github.com/users/ankihg","html_url":"https://github.com/ankihg","followers_url":"https://api.github.com/users/ankihg/followers","following_url":"https://api.github.com/users/ankihg/following{/other_user}","gists_url":"https://api.github.com/users/ankihg/gists{/gist_id}","starred_url":"https://api.github.com/users/ankihg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankihg/subscriptions","organizations_url":"https://api.github.com/users/ankihg/orgs","repos_url":"https://api.github.com/users/ankihg/repos","events_url":"https://api.github.com/users/ankihg/events{/privacy}","received_events_url":"https://api.github.com/users/ankihg/received_events","type":"User","site_admin":false},"body":"what are you listening to these events for?","created_at":"2016-05-31T21:28:34Z","updated_at":"2016-05-31T21:28:34Z","html_url":"https://github.com/codefellows-portland-javascript-401d2/express-mongo-rest-api/pull/4#discussion_r65266233","pull_request_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/pulls/comments/65266233"},"html":{"href":"https://github.com/codefellows-portland-javascript-401d2/express-mongo-rest-api/pull/4#discussion_r65266233"},"pull_request":{"href":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/pulls/4","id":71775369,"html_url":"https://github.com/codefellows-portland-javascript-401d2/express-mongo-rest-api/pull/4","diff_url":"https://github.com/codefellows-portland-javascript-401d2/express-mongo-rest-api/pull/4.diff","patch_url":"https://github.com/codefellows-portland-javascript-401d2/express-mongo-rest-api/pull/4.patch","issue_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/issues/4","number":4,"state":"open","locked":false,"title":"Dave & Allison's lab","user":{"login":"araedavis","id":13478324,"avatar_url":"https://avatars.githubusercontent.com/u/13478324?v=3","gravatar_id":"","url":"https://api.github.com/users/araedavis","html_url":"https://github.com/araedavis","followers_url":"https://api.github.com/users/araedavis/followers","following_url":"https://api.github.com/users/araedavis/following{/other_user}","gists_url":"https://api.github.com/users/araedavis/gists{/gist_id}","starred_url":"https://api.github.com/users/araedavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/araedavis/subscriptions","organizations_url":"https://api.github.com/users/araedavis/orgs","repos_url":"https://api.github.com/users/araedavis/repos","events_url":"https://api.github.com/users/araedavis/events{/privacy}","received_events_url":"https://api.github.com/users/araedavis/received_events","type":"User","site_admin":false},"body":"Complete!","created_at":"2016-05-27T21:30:11Z","updated_at":"2016-05-31T21:28:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"306e0be071e8c3164e82b4244e0fe4be03dbaf76","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/pulls/4/commits","review_comments_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/pulls/4/comments","review_comment_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/issues/4/comments","statuses_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/statuses/1c98a129016147440f3d64ef25573a7cdcf72356","head":{"label":"araedavis:master","ref":"master","sha":"1c98a129016147440f3d64ef25573a7cdcf72356","user":{"login":"araedavis","id":13478324,"avatar_url":"https://avatars.githubusercontent.com/u/13478324?v=3","gravatar_id":"","url":"https://api.github.com/users/araedavis","html_url":"https://github.com/araedavis","followers_url":"https://api.github.com/users/araedavis/followers","following_url":"https://api.github.com/users/araedavis/following{/other_user}","gists_url":"https://api.github.com/users/araedavis/gists{/gist_id}","starred_url":"https://api.github.com/users/araedavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/araedavis/subscriptions","organizations_url":"https://api.github.com/users/araedavis/orgs","repos_url":"https://api.github.com/users/araedavis/repos","events_url":"https://api.github.com/users/araedavis/events{/privacy}","received_events_url":"https://api.github.com/users/araedavis/received_events","type":"User","site_admin":false},"repo":{"id":59698314,"name":"express-mongo-rest-api","full_name":"araedavis/express-mongo-rest-api","owner":{"login":"araedavis","id":13478324,"avatar_url":"https://avatars.githubusercontent.com/u/13478324?v=3","gravatar_id":"","url":"https://api.github.com/users/araedavis","html_url":"https://github.com/araedavis","followers_url":"https://api.github.com/users/araedavis/followers","following_url":"https://api.github.com/users/araedavis/following{/other_user}","gists_url":"https://api.github.com/users/araedavis/gists{/gist_id}","starred_url":"https://api.github.com/users/araedavis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/araedavis/subscriptions","organizations_url":"https://api.github.com/users/araedavis/orgs","repos_url":"https://api.github.com/users/araedavis/repos","events_url":"https://api.github.com/users/araedavis/events{/privacy}","received_events_url":"https://api.github.com/users/araedavis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/araedavis/express-mongo-rest-api","description":"Two resource REST api backed with ExpressJS and MongoDB (using Mongoose)","fork":true,"url":"https://api.github.com/repos/araedavis/express-mongo-rest-api","forks_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/forks","keys_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/teams","hooks_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/hooks","issue_events_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/issues/events{/number}","events_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/events","assignees_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/assignees{/user}","branches_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/branches{/branch}","tags_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/tags","blobs_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/statuses/{sha}","languages_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/languages","stargazers_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/stargazers","contributors_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/contributors","subscribers_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/subscribers","subscription_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/subscription","commits_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/contents/{+path}","compare_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/merges","archive_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/downloads","issues_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/issues{/number}","pulls_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/pulls{/number}","milestones_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/milestones{/number}","notifications_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/labels{/name}","releases_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/releases{/id}","deployments_url":"https://api.github.com/repos/araedavis/express-mongo-rest-api/deployments","created_at":"2016-05-25T21:18:01Z","updated_at":"2016-05-25T21:37:31Z","pushed_at":"2016-05-31T21:02:58Z","git_url":"git://github.com/araedavis/express-mongo-rest-api.git","ssh_url":"git@github.com:araedavis/express-mongo-rest-api.git","clone_url":"https://github.com/araedavis/express-mongo-rest-api.git","svn_url":"https://github.com/araedavis/express-mongo-rest-api","homepage":null,"size":38,"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":"codefellows-portland-javascript-401d2:allison-dave","ref":"allison-dave","sha":"13bca2f75440694dcb80502f80c0855e9b9ead66","user":{"login":"codefellows-portland-javascript-401d2","id":19211234,"avatar_url":"https://avatars.githubusercontent.com/u/19211234?v=3","gravatar_id":"","url":"https://api.github.com/users/codefellows-portland-javascript-401d2","html_url":"https://github.com/codefellows-portland-javascript-401d2","followers_url":"https://api.github.com/users/codefellows-portland-javascript-401d2/followers","following_url":"https://api.github.com/users/codefellows-portland-javascript-401d2/following{/other_user}","gists_url":"https://api.github.com/users/codefellows-portland-javascript-401d2/gists{/gist_id}","starred_url":"https://api.github.com/users/codefellows-portland-javascript-401d2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codefellows-portland-javascript-401d2/subscriptions","organizations_url":"https://api.github.com/users/codefellows-portland-javascript-401d2/orgs","repos_url":"https://api.github.com/users/codefellows-portland-javascript-401d2/repos","events_url":"https://api.github.com/users/codefellows-portland-javascript-401d2/events{/privacy}","received_events_url":"https://api.github.com/users/codefellows-portland-javascript-401d2/received_events","type":"Organization","site_admin":false},"repo":{"id":59615078,"name":"express-mongo-rest-api","full_name":"codefellows-portland-javascript-401d2/express-mongo-rest-api","owner":{"login":"codefellows-portland-javascript-401d2","id":19211234,"avatar_url":"https://avatars.githubusercontent.com/u/19211234?v=3","gravatar_id":"","url":"https://api.github.com/users/codefellows-portland-javascript-401d2","html_url":"https://github.com/codefellows-portland-javascript-401d2","followers_url":"https://api.github.com/users/codefellows-portland-javascript-401d2/followers","following_url":"https://api.github.com/users/codefellows-portland-javascript-401d2/following{/other_user}","gists_url":"https://api.github.com/users/codefellows-portland-javascript-401d2/gists{/gist_id}","starred_url":"https://api.github.com/users/codefellows-portland-javascript-401d2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codefellows-portland-javascript-401d2/subscriptions","organizations_url":"https://api.github.com/users/codefellows-portland-javascript-401d2/orgs","repos_url":"https://api.github.com/users/codefellows-portland-javascript-401d2/repos","events_url":"https://api.github.com/users/codefellows-portland-javascript-401d2/events{/privacy}","received_events_url":"https://api.github.com/users/codefellows-portland-javascript-401d2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codefellows-portland-javascript-401d2/express-mongo-rest-api","description":"Two resource REST api backed with ExpressJS and MongoDB (using Mongoose)","fork":false,"url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api","forks_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/forks","keys_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/teams","hooks_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/hooks","issue_events_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/issues/events{/number}","events_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/events","assignees_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/assignees{/user}","branches_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/branches{/branch}","tags_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/tags","blobs_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/statuses/{sha}","languages_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/languages","stargazers_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/stargazers","contributors_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/contributors","subscribers_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/subscribers","subscription_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/subscription","commits_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/contents/{+path}","compare_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/merges","archive_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/downloads","issues_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/issues{/number}","pulls_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/pulls{/number}","milestones_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/milestones{/number}","notifications_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/labels{/name}","releases_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/releases{/id}","deployments_url":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/deployments","created_at":"2016-05-24T23:17:14Z","updated_at":"2016-05-24T23:17:14Z","pushed_at":"2016-05-31T21:23:50Z","git_url":"git://github.com/codefellows-portland-javascript-401d2/express-mongo-rest-api.git","ssh_url":"git@github.com:codefellows-portland-javascript-401d2/express-mongo-rest-api.git","clone_url":"https://github.com/codefellows-portland-javascript-401d2/express-mongo-rest-api.git","svn_url":"https://github.com/codefellows-portland-javascript-401d2/express-mongo-rest-api","homepage":null,"size":105,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":2,"forks":4,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/pulls/4"},"html":{"href":"https://github.com/codefellows-portland-javascript-401d2/express-mongo-rest-api/pull/4"},"issue":{"href":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/issues/4"},"comments":{"href":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/codefellows-portland-javascript-401d2/express-mongo-rest-api/statuses/1c98a129016147440f3d64ef25573a7cdcf72356"}}}}
{"actor":{"display_login":"ankihg"}}