{"action":"created","comment":{"url":"https://api.github.com/repos/lawnjunk/charity-choice/pulls/comments/149510200","pull_request_review_id":74911451,"id":149510200,"diff_hunk":"@@ -0,0 +1,66 @@\n+'use strict';\n+\n+const { Router } = require('express');\n+const httpErrors = require('http-errors');\n+const bearerAuth = require('../lib/bearer-auth-middleware.js');\n+const Donation = require('../model/donation.js');\n+const Profile = require('../model/profile.js');\n+\n+let fuzzy = (filterTerm) => new RegExp('.*' + filterTerm.toLowerCase().split('').join('.*') + '.*');","path":"route/donation-router.js","position":9,"original_position":9,"commit_id":"f67c2337ce20215d3cc523a6986c8060449c5845","original_commit_id":"f67c2337ce20215d3cc523a6986c8060449c5845","user":{"login":"slugbyte","id":3581973,"avatar_url":"https://avatars3.githubusercontent.com/u/3581973?v=4","gravatar_id":"","url":"https://api.github.com/users/slugbyte","html_url":"https://github.com/slugbyte","followers_url":"https://api.github.com/users/slugbyte/followers","following_url":"https://api.github.com/users/slugbyte/following{/other_user}","gists_url":"https://api.github.com/users/slugbyte/gists{/gist_id}","starred_url":"https://api.github.com/users/slugbyte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slugbyte/subscriptions","organizations_url":"https://api.github.com/users/slugbyte/orgs","repos_url":"https://api.github.com/users/slugbyte/repos","events_url":"https://api.github.com/users/slugbyte/events{/privacy}","received_events_url":"https://api.github.com/users/slugbyte/received_events","type":"User","site_admin":false},"body":"This should be moved to a `lib/fuzzy.js` because its being implamented in more than one file","created_at":"2017-11-07T21:33:27Z","updated_at":"2017-11-07T21:49:37Z","html_url":"https://github.com/lawnjunk/charity-choice/pull/1#discussion_r149510200","pull_request_url":"https://api.github.com/repos/lawnjunk/charity-choice/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/lawnjunk/charity-choice/pulls/comments/149510200"},"html":{"href":"https://github.com/lawnjunk/charity-choice/pull/1#discussion_r149510200"},"pull_request":{"href":"https://api.github.com/repos/lawnjunk/charity-choice/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/lawnjunk/charity-choice/pulls/1","id":151230016,"html_url":"https://github.com/lawnjunk/charity-choice/pull/1","diff_url":"https://github.com/lawnjunk/charity-choice/pull/1.diff","patch_url":"https://github.com/lawnjunk/charity-choice/pull/1.patch","issue_url":"https://api.github.com/repos/lawnjunk/charity-choice/issues/1","number":1,"state":"open","locked":false,"title":"grading","user":{"login":"slugbyte","id":3581973,"avatar_url":"https://avatars3.githubusercontent.com/u/3581973?v=4","gravatar_id":"","url":"https://api.github.com/users/slugbyte","html_url":"https://github.com/slugbyte","followers_url":"https://api.github.com/users/slugbyte/followers","following_url":"https://api.github.com/users/slugbyte/following{/other_user}","gists_url":"https://api.github.com/users/slugbyte/gists{/gist_id}","starred_url":"https://api.github.com/users/slugbyte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slugbyte/subscriptions","organizations_url":"https://api.github.com/users/slugbyte/orgs","repos_url":"https://api.github.com/users/slugbyte/repos","events_url":"https://api.github.com/users/slugbyte/events{/privacy}","received_events_url":"https://api.github.com/users/slugbyte/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-11-07T21:19:19Z","updated_at":"2017-11-07T21:49:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9f1ed63c69a135ff245ead55d29396dd88d186c8","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/lawnjunk/charity-choice/pulls/1/commits","review_comments_url":"https://api.github.com/repos/lawnjunk/charity-choice/pulls/1/comments","review_comment_url":"https://api.github.com/repos/lawnjunk/charity-choice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lawnjunk/charity-choice/issues/1/comments","statuses_url":"https://api.github.com/repos/lawnjunk/charity-choice/statuses/f67c2337ce20215d3cc523a6986c8060449c5845","head":{"label":"lawnjunk:master","ref":"master","sha":"f67c2337ce20215d3cc523a6986c8060449c5845","user":{"login":"lawnjunk","id":33441071,"avatar_url":"https://avatars1.githubusercontent.com/u/33441071?v=4","gravatar_id":"","url":"https://api.github.com/users/lawnjunk","html_url":"https://github.com/lawnjunk","followers_url":"https://api.github.com/users/lawnjunk/followers","following_url":"https://api.github.com/users/lawnjunk/following{/other_user}","gists_url":"https://api.github.com/users/lawnjunk/gists{/gist_id}","starred_url":"https://api.github.com/users/lawnjunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lawnjunk/subscriptions","organizations_url":"https://api.github.com/users/lawnjunk/orgs","repos_url":"https://api.github.com/users/lawnjunk/repos","events_url":"https://api.github.com/users/lawnjunk/events{/privacy}","received_events_url":"https://api.github.com/users/lawnjunk/received_events","type":"Organization","site_admin":false},"repo":{"id":109891575,"name":"charity-choice","full_name":"lawnjunk/charity-choice","owner":{"login":"lawnjunk","id":33441071,"avatar_url":"https://avatars1.githubusercontent.com/u/33441071?v=4","gravatar_id":"","url":"https://api.github.com/users/lawnjunk","html_url":"https://github.com/lawnjunk","followers_url":"https://api.github.com/users/lawnjunk/followers","following_url":"https://api.github.com/users/lawnjunk/following{/other_user}","gists_url":"https://api.github.com/users/lawnjunk/gists{/gist_id}","starred_url":"https://api.github.com/users/lawnjunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lawnjunk/subscriptions","organizations_url":"https://api.github.com/users/lawnjunk/orgs","repos_url":"https://api.github.com/users/lawnjunk/repos","events_url":"https://api.github.com/users/lawnjunk/events{/privacy}","received_events_url":"https://api.github.com/users/lawnjunk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lawnjunk/charity-choice","description":"Charity Choice App","fork":true,"url":"https://api.github.com/repos/lawnjunk/charity-choice","forks_url":"https://api.github.com/repos/lawnjunk/charity-choice/forks","keys_url":"https://api.github.com/repos/lawnjunk/charity-choice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lawnjunk/charity-choice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lawnjunk/charity-choice/teams","hooks_url":"https://api.github.com/repos/lawnjunk/charity-choice/hooks","issue_events_url":"https://api.github.com/repos/lawnjunk/charity-choice/issues/events{/number}","events_url":"https://api.github.com/repos/lawnjunk/charity-choice/events","assignees_url":"https://api.github.com/repos/lawnjunk/charity-choice/assignees{/user}","branches_url":"https://api.github.com/repos/lawnjunk/charity-choice/branches{/branch}","tags_url":"https://api.github.com/repos/lawnjunk/charity-choice/tags","blobs_url":"https://api.github.com/repos/lawnjunk/charity-choice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lawnjunk/charity-choice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lawnjunk/charity-choice/git/refs{/sha}","trees_url":"https://api.github.com/repos/lawnjunk/charity-choice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lawnjunk/charity-choice/statuses/{sha}","languages_url":"https://api.github.com/repos/lawnjunk/charity-choice/languages","stargazers_url":"https://api.github.com/repos/lawnjunk/charity-choice/stargazers","contributors_url":"https://api.github.com/repos/lawnjunk/charity-choice/contributors","subscribers_url":"https://api.github.com/repos/lawnjunk/charity-choice/subscribers","subscription_url":"https://api.github.com/repos/lawnjunk/charity-choice/subscription","commits_url":"https://api.github.com/repos/lawnjunk/charity-choice/commits{/sha}","git_commits_url":"https://api.github.com/repos/lawnjunk/charity-choice/git/commits{/sha}","comments_url":"https://api.github.com/repos/lawnjunk/charity-choice/comments{/number}","issue_comment_url":"https://api.github.com/repos/lawnjunk/charity-choice/issues/comments{/number}","contents_url":"https://api.github.com/repos/lawnjunk/charity-choice/contents/{+path}","compare_url":"https://api.github.com/repos/lawnjunk/charity-choice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lawnjunk/charity-choice/merges","archive_url":"https://api.github.com/repos/lawnjunk/charity-choice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lawnjunk/charity-choice/downloads","issues_url":"https://api.github.com/repos/lawnjunk/charity-choice/issues{/number}","pulls_url":"https://api.github.com/repos/lawnjunk/charity-choice/pulls{/number}","milestones_url":"https://api.github.com/repos/lawnjunk/charity-choice/milestones{/number}","notifications_url":"https://api.github.com/repos/lawnjunk/charity-choice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lawnjunk/charity-choice/labels{/name}","releases_url":"https://api.github.com/repos/lawnjunk/charity-choice/releases{/id}","deployments_url":"https://api.github.com/repos/lawnjunk/charity-choice/deployments","created_at":"2017-11-07T21:14:26Z","updated_at":"2017-11-07T21:14:28Z","pushed_at":"2017-11-07T21:19:20Z","git_url":"git://github.com/lawnjunk/charity-choice.git","ssh_url":"git@github.com:lawnjunk/charity-choice.git","clone_url":"https://github.com/lawnjunk/charity-choice.git","svn_url":"https://github.com/lawnjunk/charity-choice","homepage":null,"size":644,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"lawnjunk:grade","ref":"grade","sha":"b2b28a42843dfff34c61e3778c7008ea831e6466","user":{"login":"lawnjunk","id":33441071,"avatar_url":"https://avatars1.githubusercontent.com/u/33441071?v=4","gravatar_id":"","url":"https://api.github.com/users/lawnjunk","html_url":"https://github.com/lawnjunk","followers_url":"https://api.github.com/users/lawnjunk/followers","following_url":"https://api.github.com/users/lawnjunk/following{/other_user}","gists_url":"https://api.github.com/users/lawnjunk/gists{/gist_id}","starred_url":"https://api.github.com/users/lawnjunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lawnjunk/subscriptions","organizations_url":"https://api.github.com/users/lawnjunk/orgs","repos_url":"https://api.github.com/users/lawnjunk/repos","events_url":"https://api.github.com/users/lawnjunk/events{/privacy}","received_events_url":"https://api.github.com/users/lawnjunk/received_events","type":"Organization","site_admin":false},"repo":{"id":109891575,"name":"charity-choice","full_name":"lawnjunk/charity-choice","owner":{"login":"lawnjunk","id":33441071,"avatar_url":"https://avatars1.githubusercontent.com/u/33441071?v=4","gravatar_id":"","url":"https://api.github.com/users/lawnjunk","html_url":"https://github.com/lawnjunk","followers_url":"https://api.github.com/users/lawnjunk/followers","following_url":"https://api.github.com/users/lawnjunk/following{/other_user}","gists_url":"https://api.github.com/users/lawnjunk/gists{/gist_id}","starred_url":"https://api.github.com/users/lawnjunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lawnjunk/subscriptions","organizations_url":"https://api.github.com/users/lawnjunk/orgs","repos_url":"https://api.github.com/users/lawnjunk/repos","events_url":"https://api.github.com/users/lawnjunk/events{/privacy}","received_events_url":"https://api.github.com/users/lawnjunk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lawnjunk/charity-choice","description":"Charity Choice App","fork":true,"url":"https://api.github.com/repos/lawnjunk/charity-choice","forks_url":"https://api.github.com/repos/lawnjunk/charity-choice/forks","keys_url":"https://api.github.com/repos/lawnjunk/charity-choice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lawnjunk/charity-choice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lawnjunk/charity-choice/teams","hooks_url":"https://api.github.com/repos/lawnjunk/charity-choice/hooks","issue_events_url":"https://api.github.com/repos/lawnjunk/charity-choice/issues/events{/number}","events_url":"https://api.github.com/repos/lawnjunk/charity-choice/events","assignees_url":"https://api.github.com/repos/lawnjunk/charity-choice/assignees{/user}","branches_url":"https://api.github.com/repos/lawnjunk/charity-choice/branches{/branch}","tags_url":"https://api.github.com/repos/lawnjunk/charity-choice/tags","blobs_url":"https://api.github.com/repos/lawnjunk/charity-choice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lawnjunk/charity-choice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lawnjunk/charity-choice/git/refs{/sha}","trees_url":"https://api.github.com/repos/lawnjunk/charity-choice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lawnjunk/charity-choice/statuses/{sha}","languages_url":"https://api.github.com/repos/lawnjunk/charity-choice/languages","stargazers_url":"https://api.github.com/repos/lawnjunk/charity-choice/stargazers","contributors_url":"https://api.github.com/repos/lawnjunk/charity-choice/contributors","subscribers_url":"https://api.github.com/repos/lawnjunk/charity-choice/subscribers","subscription_url":"https://api.github.com/repos/lawnjunk/charity-choice/subscription","commits_url":"https://api.github.com/repos/lawnjunk/charity-choice/commits{/sha}","git_commits_url":"https://api.github.com/repos/lawnjunk/charity-choice/git/commits{/sha}","comments_url":"https://api.github.com/repos/lawnjunk/charity-choice/comments{/number}","issue_comment_url":"https://api.github.com/repos/lawnjunk/charity-choice/issues/comments{/number}","contents_url":"https://api.github.com/repos/lawnjunk/charity-choice/contents/{+path}","compare_url":"https://api.github.com/repos/lawnjunk/charity-choice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lawnjunk/charity-choice/merges","archive_url":"https://api.github.com/repos/lawnjunk/charity-choice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lawnjunk/charity-choice/downloads","issues_url":"https://api.github.com/repos/lawnjunk/charity-choice/issues{/number}","pulls_url":"https://api.github.com/repos/lawnjunk/charity-choice/pulls{/number}","milestones_url":"https://api.github.com/repos/lawnjunk/charity-choice/milestones{/number}","notifications_url":"https://api.github.com/repos/lawnjunk/charity-choice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lawnjunk/charity-choice/labels{/name}","releases_url":"https://api.github.com/repos/lawnjunk/charity-choice/releases{/id}","deployments_url":"https://api.github.com/repos/lawnjunk/charity-choice/deployments","created_at":"2017-11-07T21:14:26Z","updated_at":"2017-11-07T21:14:28Z","pushed_at":"2017-11-07T21:19:20Z","git_url":"git://github.com/lawnjunk/charity-choice.git","ssh_url":"git@github.com:lawnjunk/charity-choice.git","clone_url":"https://github.com/lawnjunk/charity-choice.git","svn_url":"https://github.com/lawnjunk/charity-choice","homepage":null,"size":644,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lawnjunk/charity-choice/pulls/1"},"html":{"href":"https://github.com/lawnjunk/charity-choice/pull/1"},"issue":{"href":"https://api.github.com/repos/lawnjunk/charity-choice/issues/1"},"comments":{"href":"https://api.github.com/repos/lawnjunk/charity-choice/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/lawnjunk/charity-choice/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/lawnjunk/charity-choice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lawnjunk/charity-choice/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/lawnjunk/charity-choice/statuses/f67c2337ce20215d3cc523a6986c8060449c5845"}},"author_association":"NONE"}}
{"actor":{"display_login":"slugbyte"}}