{"action":"created","comment":{"url":"https://api.github.com/repos/kevinsa/within-your-macros/pulls/comments/168779538","pull_request_review_id":97205715,"id":168779538,"diff_hunk":"@@ -5,17 +5,13 @@ const utilities = require('../services/utilities');\n \n module.exports = (router, passport) => {\n   router.get('/foods', (req, res) => {\n-    passport.authenticate('bearer', { session: false }, async (err, user, info) => {\n+    passport.authenticate('bearer', { session: false }, async (err, user) => {\n       // todo: after user is being populated, authenticate requests by user\n       // if (!user) {\n       //   res.status(401).send({ message: 'Unauthorized' })\n       //   return;\n       // }\n \n-      if (info) {","path":"server/controllers/foods.js","position":12,"original_position":12,"commit_id":"5e85e1d713c18ccdbabe06f6424706e39903acda","original_commit_id":"5e85e1d713c18ccdbabe06f6424706e39903acda","user":{"login":"joseph4tw","id":3308780,"avatar_url":"https://avatars3.githubusercontent.com/u/3308780?v=4","gravatar_id":"","url":"https://api.github.com/users/joseph4tw","html_url":"https://github.com/joseph4tw","followers_url":"https://api.github.com/users/joseph4tw/followers","following_url":"https://api.github.com/users/joseph4tw/following{/other_user}","gists_url":"https://api.github.com/users/joseph4tw/gists{/gist_id}","starred_url":"https://api.github.com/users/joseph4tw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joseph4tw/subscriptions","organizations_url":"https://api.github.com/users/joseph4tw/orgs","repos_url":"https://api.github.com/users/joseph4tw/repos","events_url":"https://api.github.com/users/joseph4tw/events{/privacy}","received_events_url":"https://api.github.com/users/joseph4tw/received_events","type":"User","site_admin":false},"body":"Thanks for this","created_at":"2018-02-16T15:02:29Z","updated_at":"2018-02-16T15:03:56Z","html_url":"https://github.com/kevinsa/within-your-macros/pull/5#discussion_r168779538","pull_request_url":"https://api.github.com/repos/kevinsa/within-your-macros/pulls/5","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/kevinsa/within-your-macros/pulls/comments/168779538"},"html":{"href":"https://github.com/kevinsa/within-your-macros/pull/5#discussion_r168779538"},"pull_request":{"href":"https://api.github.com/repos/kevinsa/within-your-macros/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/kevinsa/within-your-macros/pulls/5","id":168943312,"html_url":"https://github.com/kevinsa/within-your-macros/pull/5","diff_url":"https://github.com/kevinsa/within-your-macros/pull/5.diff","patch_url":"https://github.com/kevinsa/within-your-macros/pull/5.patch","issue_url":"https://api.github.com/repos/kevinsa/within-your-macros/issues/5","number":5,"state":"open","locked":false,"title":"Food search interface","user":{"login":"kevinsa","id":1149091,"avatar_url":"https://avatars2.githubusercontent.com/u/1149091?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinsa","html_url":"https://github.com/kevinsa","followers_url":"https://api.github.com/users/kevinsa/followers","following_url":"https://api.github.com/users/kevinsa/following{/other_user}","gists_url":"https://api.github.com/users/kevinsa/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsa/subscriptions","organizations_url":"https://api.github.com/users/kevinsa/orgs","repos_url":"https://api.github.com/users/kevinsa/repos","events_url":"https://api.github.com/users/kevinsa/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsa/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-13T20:07:29Z","updated_at":"2018-02-16T15:03:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e33010f7de2096e3cd3d8d520053d530b8282ce8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kevinsa/within-your-macros/pulls/5/commits","review_comments_url":"https://api.github.com/repos/kevinsa/within-your-macros/pulls/5/comments","review_comment_url":"https://api.github.com/repos/kevinsa/within-your-macros/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kevinsa/within-your-macros/issues/5/comments","statuses_url":"https://api.github.com/repos/kevinsa/within-your-macros/statuses/5e85e1d713c18ccdbabe06f6424706e39903acda","head":{"label":"kevinsa:food-search-interface","ref":"food-search-interface","sha":"5e85e1d713c18ccdbabe06f6424706e39903acda","user":{"login":"kevinsa","id":1149091,"avatar_url":"https://avatars2.githubusercontent.com/u/1149091?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinsa","html_url":"https://github.com/kevinsa","followers_url":"https://api.github.com/users/kevinsa/followers","following_url":"https://api.github.com/users/kevinsa/following{/other_user}","gists_url":"https://api.github.com/users/kevinsa/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsa/subscriptions","organizations_url":"https://api.github.com/users/kevinsa/orgs","repos_url":"https://api.github.com/users/kevinsa/repos","events_url":"https://api.github.com/users/kevinsa/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsa/received_events","type":"User","site_admin":false},"repo":{"id":119854365,"name":"within-your-macros","full_name":"kevinsa/within-your-macros","owner":{"login":"kevinsa","id":1149091,"avatar_url":"https://avatars2.githubusercontent.com/u/1149091?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinsa","html_url":"https://github.com/kevinsa","followers_url":"https://api.github.com/users/kevinsa/followers","following_url":"https://api.github.com/users/kevinsa/following{/other_user}","gists_url":"https://api.github.com/users/kevinsa/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsa/subscriptions","organizations_url":"https://api.github.com/users/kevinsa/orgs","repos_url":"https://api.github.com/users/kevinsa/repos","events_url":"https://api.github.com/users/kevinsa/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kevinsa/within-your-macros","description":null,"fork":false,"url":"https://api.github.com/repos/kevinsa/within-your-macros","forks_url":"https://api.github.com/repos/kevinsa/within-your-macros/forks","keys_url":"https://api.github.com/repos/kevinsa/within-your-macros/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kevinsa/within-your-macros/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kevinsa/within-your-macros/teams","hooks_url":"https://api.github.com/repos/kevinsa/within-your-macros/hooks","issue_events_url":"https://api.github.com/repos/kevinsa/within-your-macros/issues/events{/number}","events_url":"https://api.github.com/repos/kevinsa/within-your-macros/events","assignees_url":"https://api.github.com/repos/kevinsa/within-your-macros/assignees{/user}","branches_url":"https://api.github.com/repos/kevinsa/within-your-macros/branches{/branch}","tags_url":"https://api.github.com/repos/kevinsa/within-your-macros/tags","blobs_url":"https://api.github.com/repos/kevinsa/within-your-macros/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kevinsa/within-your-macros/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kevinsa/within-your-macros/git/refs{/sha}","trees_url":"https://api.github.com/repos/kevinsa/within-your-macros/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kevinsa/within-your-macros/statuses/{sha}","languages_url":"https://api.github.com/repos/kevinsa/within-your-macros/languages","stargazers_url":"https://api.github.com/repos/kevinsa/within-your-macros/stargazers","contributors_url":"https://api.github.com/repos/kevinsa/within-your-macros/contributors","subscribers_url":"https://api.github.com/repos/kevinsa/within-your-macros/subscribers","subscription_url":"https://api.github.com/repos/kevinsa/within-your-macros/subscription","commits_url":"https://api.github.com/repos/kevinsa/within-your-macros/commits{/sha}","git_commits_url":"https://api.github.com/repos/kevinsa/within-your-macros/git/commits{/sha}","comments_url":"https://api.github.com/repos/kevinsa/within-your-macros/comments{/number}","issue_comment_url":"https://api.github.com/repos/kevinsa/within-your-macros/issues/comments{/number}","contents_url":"https://api.github.com/repos/kevinsa/within-your-macros/contents/{+path}","compare_url":"https://api.github.com/repos/kevinsa/within-your-macros/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kevinsa/within-your-macros/merges","archive_url":"https://api.github.com/repos/kevinsa/within-your-macros/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kevinsa/within-your-macros/downloads","issues_url":"https://api.github.com/repos/kevinsa/within-your-macros/issues{/number}","pulls_url":"https://api.github.com/repos/kevinsa/within-your-macros/pulls{/number}","milestones_url":"https://api.github.com/repos/kevinsa/within-your-macros/milestones{/number}","notifications_url":"https://api.github.com/repos/kevinsa/within-your-macros/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kevinsa/within-your-macros/labels{/name}","releases_url":"https://api.github.com/repos/kevinsa/within-your-macros/releases{/id}","deployments_url":"https://api.github.com/repos/kevinsa/within-your-macros/deployments","created_at":"2018-02-01T15:28:00Z","updated_at":"2018-02-11T19:21:32Z","pushed_at":"2018-02-13T20:07:30Z","git_url":"git://github.com/kevinsa/within-your-macros.git","ssh_url":"git@github.com:kevinsa/within-your-macros.git","clone_url":"https://github.com/kevinsa/within-your-macros.git","svn_url":"https://github.com/kevinsa/within-your-macros","homepage":null,"size":77,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"kevinsa:develop","ref":"develop","sha":"4aebd8d9656bfd8859552ee339bc3987028a3d1c","user":{"login":"kevinsa","id":1149091,"avatar_url":"https://avatars2.githubusercontent.com/u/1149091?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinsa","html_url":"https://github.com/kevinsa","followers_url":"https://api.github.com/users/kevinsa/followers","following_url":"https://api.github.com/users/kevinsa/following{/other_user}","gists_url":"https://api.github.com/users/kevinsa/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsa/subscriptions","organizations_url":"https://api.github.com/users/kevinsa/orgs","repos_url":"https://api.github.com/users/kevinsa/repos","events_url":"https://api.github.com/users/kevinsa/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsa/received_events","type":"User","site_admin":false},"repo":{"id":119854365,"name":"within-your-macros","full_name":"kevinsa/within-your-macros","owner":{"login":"kevinsa","id":1149091,"avatar_url":"https://avatars2.githubusercontent.com/u/1149091?v=4","gravatar_id":"","url":"https://api.github.com/users/kevinsa","html_url":"https://github.com/kevinsa","followers_url":"https://api.github.com/users/kevinsa/followers","following_url":"https://api.github.com/users/kevinsa/following{/other_user}","gists_url":"https://api.github.com/users/kevinsa/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinsa/subscriptions","organizations_url":"https://api.github.com/users/kevinsa/orgs","repos_url":"https://api.github.com/users/kevinsa/repos","events_url":"https://api.github.com/users/kevinsa/events{/privacy}","received_events_url":"https://api.github.com/users/kevinsa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kevinsa/within-your-macros","description":null,"fork":false,"url":"https://api.github.com/repos/kevinsa/within-your-macros","forks_url":"https://api.github.com/repos/kevinsa/within-your-macros/forks","keys_url":"https://api.github.com/repos/kevinsa/within-your-macros/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kevinsa/within-your-macros/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kevinsa/within-your-macros/teams","hooks_url":"https://api.github.com/repos/kevinsa/within-your-macros/hooks","issue_events_url":"https://api.github.com/repos/kevinsa/within-your-macros/issues/events{/number}","events_url":"https://api.github.com/repos/kevinsa/within-your-macros/events","assignees_url":"https://api.github.com/repos/kevinsa/within-your-macros/assignees{/user}","branches_url":"https://api.github.com/repos/kevinsa/within-your-macros/branches{/branch}","tags_url":"https://api.github.com/repos/kevinsa/within-your-macros/tags","blobs_url":"https://api.github.com/repos/kevinsa/within-your-macros/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kevinsa/within-your-macros/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kevinsa/within-your-macros/git/refs{/sha}","trees_url":"https://api.github.com/repos/kevinsa/within-your-macros/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kevinsa/within-your-macros/statuses/{sha}","languages_url":"https://api.github.com/repos/kevinsa/within-your-macros/languages","stargazers_url":"https://api.github.com/repos/kevinsa/within-your-macros/stargazers","contributors_url":"https://api.github.com/repos/kevinsa/within-your-macros/contributors","subscribers_url":"https://api.github.com/repos/kevinsa/within-your-macros/subscribers","subscription_url":"https://api.github.com/repos/kevinsa/within-your-macros/subscription","commits_url":"https://api.github.com/repos/kevinsa/within-your-macros/commits{/sha}","git_commits_url":"https://api.github.com/repos/kevinsa/within-your-macros/git/commits{/sha}","comments_url":"https://api.github.com/repos/kevinsa/within-your-macros/comments{/number}","issue_comment_url":"https://api.github.com/repos/kevinsa/within-your-macros/issues/comments{/number}","contents_url":"https://api.github.com/repos/kevinsa/within-your-macros/contents/{+path}","compare_url":"https://api.github.com/repos/kevinsa/within-your-macros/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kevinsa/within-your-macros/merges","archive_url":"https://api.github.com/repos/kevinsa/within-your-macros/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kevinsa/within-your-macros/downloads","issues_url":"https://api.github.com/repos/kevinsa/within-your-macros/issues{/number}","pulls_url":"https://api.github.com/repos/kevinsa/within-your-macros/pulls{/number}","milestones_url":"https://api.github.com/repos/kevinsa/within-your-macros/milestones{/number}","notifications_url":"https://api.github.com/repos/kevinsa/within-your-macros/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kevinsa/within-your-macros/labels{/name}","releases_url":"https://api.github.com/repos/kevinsa/within-your-macros/releases{/id}","deployments_url":"https://api.github.com/repos/kevinsa/within-your-macros/deployments","created_at":"2018-02-01T15:28:00Z","updated_at":"2018-02-11T19:21:32Z","pushed_at":"2018-02-13T20:07:30Z","git_url":"git://github.com/kevinsa/within-your-macros.git","ssh_url":"git@github.com:kevinsa/within-your-macros.git","clone_url":"https://github.com/kevinsa/within-your-macros.git","svn_url":"https://github.com/kevinsa/within-your-macros","homepage":null,"size":77,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kevinsa/within-your-macros/pulls/5"},"html":{"href":"https://github.com/kevinsa/within-your-macros/pull/5"},"issue":{"href":"https://api.github.com/repos/kevinsa/within-your-macros/issues/5"},"comments":{"href":"https://api.github.com/repos/kevinsa/within-your-macros/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/kevinsa/within-your-macros/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/kevinsa/within-your-macros/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kevinsa/within-your-macros/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/kevinsa/within-your-macros/statuses/5e85e1d713c18ccdbabe06f6424706e39903acda"}},"author_association":"OWNER"}}
{"actor":{"display_login":"joseph4tw"}}