{"action":"created","comment":{"url":"https://api.github.com/repos/RandoApp/Rando-admin/pulls/comments/89625874","pull_request_review_id":10170923,"id":89625874,"diff_hunk":"@@ -1,26 +1,25 @@\n+var basicAuth = require(\"basic-auth\");\n var adminModel = require(\"../model/adminModel\");\n+var logger = require(\"../log/logger\");\n+var config = require(\"config\");\n+\n+function sendAccessDenied (res) {\n+  res.statusCode = 401;\n+  res.setHeader('WWW-Authenticate', 'Basic realm=\"example\"');\n+  res.end('Access denied');","path":"src/service/access.js","position":9,"original_position":9,"commit_id":"170fe9a5acd46d922dd244b824db4084539b564d","original_commit_id":"170fe9a5acd46d922dd244b824db4084539b564d","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Strings must use doublequote. (quotes)](https://www.codacy.com/app/RandoApp/Rando-admin/file/4543778707/issues/source?bid=3392803&fileBranchId=3940981#l9)","created_at":"2016-11-25T14:37:51Z","updated_at":"2016-11-25T14:37:52Z","html_url":"https://github.com/RandoApp/Rando-admin/pull/12#discussion_r89625874","pull_request_url":"https://api.github.com/repos/RandoApp/Rando-admin/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/RandoApp/Rando-admin/pulls/comments/89625874"},"html":{"href":"https://github.com/RandoApp/Rando-admin/pull/12#discussion_r89625874"},"pull_request":{"href":"https://api.github.com/repos/RandoApp/Rando-admin/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/RandoApp/Rando-admin/pulls/12","id":95313095,"html_url":"https://github.com/RandoApp/Rando-admin/pull/12","diff_url":"https://github.com/RandoApp/Rando-admin/pull/12.diff","patch_url":"https://github.com/RandoApp/Rando-admin/pull/12.patch","issue_url":"https://api.github.com/repos/RandoApp/Rando-admin/issues/12","number":12,"state":"closed","locked":false,"title":"Full rework","user":{"login":"dimhold","id":977022,"avatar_url":"https://avatars.githubusercontent.com/u/977022?v=3","gravatar_id":"","url":"https://api.github.com/users/dimhold","html_url":"https://github.com/dimhold","followers_url":"https://api.github.com/users/dimhold/followers","following_url":"https://api.github.com/users/dimhold/following{/other_user}","gists_url":"https://api.github.com/users/dimhold/gists{/gist_id}","starred_url":"https://api.github.com/users/dimhold/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dimhold/subscriptions","organizations_url":"https://api.github.com/users/dimhold/orgs","repos_url":"https://api.github.com/users/dimhold/repos","events_url":"https://api.github.com/users/dimhold/events{/privacy}","received_events_url":"https://api.github.com/users/dimhold/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-25T14:35:47Z","updated_at":"2016-11-25T14:37:52Z","closed_at":"2016-11-25T14:36:59Z","merged_at":"2016-11-25T14:36:59Z","merge_commit_sha":"48ba798d696e59bef5f8e69d34246aad9b108511","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/RandoApp/Rando-admin/pulls/12/commits","review_comments_url":"https://api.github.com/repos/RandoApp/Rando-admin/pulls/12/comments","review_comment_url":"https://api.github.com/repos/RandoApp/Rando-admin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RandoApp/Rando-admin/issues/12/comments","statuses_url":"https://api.github.com/repos/RandoApp/Rando-admin/statuses/170fe9a5acd46d922dd244b824db4084539b564d","head":{"label":"RandoApp:fix-authorization","ref":"fix-authorization","sha":"170fe9a5acd46d922dd244b824db4084539b564d","user":{"login":"RandoApp","id":7382647,"avatar_url":"https://avatars.githubusercontent.com/u/7382647?v=3","gravatar_id":"","url":"https://api.github.com/users/RandoApp","html_url":"https://github.com/RandoApp","followers_url":"https://api.github.com/users/RandoApp/followers","following_url":"https://api.github.com/users/RandoApp/following{/other_user}","gists_url":"https://api.github.com/users/RandoApp/gists{/gist_id}","starred_url":"https://api.github.com/users/RandoApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RandoApp/subscriptions","organizations_url":"https://api.github.com/users/RandoApp/orgs","repos_url":"https://api.github.com/users/RandoApp/repos","events_url":"https://api.github.com/users/RandoApp/events{/privacy}","received_events_url":"https://api.github.com/users/RandoApp/received_events","type":"Organization","site_admin":false},"repo":{"id":21271303,"name":"Rando-admin","full_name":"RandoApp/Rando-admin","owner":{"login":"RandoApp","id":7382647,"avatar_url":"https://avatars.githubusercontent.com/u/7382647?v=3","gravatar_id":"","url":"https://api.github.com/users/RandoApp","html_url":"https://github.com/RandoApp","followers_url":"https://api.github.com/users/RandoApp/followers","following_url":"https://api.github.com/users/RandoApp/following{/other_user}","gists_url":"https://api.github.com/users/RandoApp/gists{/gist_id}","starred_url":"https://api.github.com/users/RandoApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RandoApp/subscriptions","organizations_url":"https://api.github.com/users/RandoApp/orgs","repos_url":"https://api.github.com/users/RandoApp/repos","events_url":"https://api.github.com/users/RandoApp/events{/privacy}","received_events_url":"https://api.github.com/users/RandoApp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RandoApp/Rando-admin","description":"Admin console for rando server","fork":false,"url":"https://api.github.com/repos/RandoApp/Rando-admin","forks_url":"https://api.github.com/repos/RandoApp/Rando-admin/forks","keys_url":"https://api.github.com/repos/RandoApp/Rando-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RandoApp/Rando-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RandoApp/Rando-admin/teams","hooks_url":"https://api.github.com/repos/RandoApp/Rando-admin/hooks","issue_events_url":"https://api.github.com/repos/RandoApp/Rando-admin/issues/events{/number}","events_url":"https://api.github.com/repos/RandoApp/Rando-admin/events","assignees_url":"https://api.github.com/repos/RandoApp/Rando-admin/assignees{/user}","branches_url":"https://api.github.com/repos/RandoApp/Rando-admin/branches{/branch}","tags_url":"https://api.github.com/repos/RandoApp/Rando-admin/tags","blobs_url":"https://api.github.com/repos/RandoApp/Rando-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RandoApp/Rando-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RandoApp/Rando-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/RandoApp/Rando-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RandoApp/Rando-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/RandoApp/Rando-admin/languages","stargazers_url":"https://api.github.com/repos/RandoApp/Rando-admin/stargazers","contributors_url":"https://api.github.com/repos/RandoApp/Rando-admin/contributors","subscribers_url":"https://api.github.com/repos/RandoApp/Rando-admin/subscribers","subscription_url":"https://api.github.com/repos/RandoApp/Rando-admin/subscription","commits_url":"https://api.github.com/repos/RandoApp/Rando-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/RandoApp/Rando-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/RandoApp/Rando-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/RandoApp/Rando-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/RandoApp/Rando-admin/contents/{+path}","compare_url":"https://api.github.com/repos/RandoApp/Rando-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RandoApp/Rando-admin/merges","archive_url":"https://api.github.com/repos/RandoApp/Rando-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RandoApp/Rando-admin/downloads","issues_url":"https://api.github.com/repos/RandoApp/Rando-admin/issues{/number}","pulls_url":"https://api.github.com/repos/RandoApp/Rando-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/RandoApp/Rando-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/RandoApp/Rando-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RandoApp/Rando-admin/labels{/name}","releases_url":"https://api.github.com/repos/RandoApp/Rando-admin/releases{/id}","deployments_url":"https://api.github.com/repos/RandoApp/Rando-admin/deployments","created_at":"2014-06-27T09:51:30Z","updated_at":"2016-07-06T15:07:30Z","pushed_at":"2016-11-25T14:36:59Z","git_url":"git://github.com/RandoApp/Rando-admin.git","ssh_url":"git@github.com:RandoApp/Rando-admin.git","clone_url":"https://github.com/RandoApp/Rando-admin.git","svn_url":"https://github.com/RandoApp/Rando-admin","homepage":"https://rando4.me","size":150,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"RandoApp:master","ref":"master","sha":"fd00670b931dc4347b4d74eb26d844007942243c","user":{"login":"RandoApp","id":7382647,"avatar_url":"https://avatars.githubusercontent.com/u/7382647?v=3","gravatar_id":"","url":"https://api.github.com/users/RandoApp","html_url":"https://github.com/RandoApp","followers_url":"https://api.github.com/users/RandoApp/followers","following_url":"https://api.github.com/users/RandoApp/following{/other_user}","gists_url":"https://api.github.com/users/RandoApp/gists{/gist_id}","starred_url":"https://api.github.com/users/RandoApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RandoApp/subscriptions","organizations_url":"https://api.github.com/users/RandoApp/orgs","repos_url":"https://api.github.com/users/RandoApp/repos","events_url":"https://api.github.com/users/RandoApp/events{/privacy}","received_events_url":"https://api.github.com/users/RandoApp/received_events","type":"Organization","site_admin":false},"repo":{"id":21271303,"name":"Rando-admin","full_name":"RandoApp/Rando-admin","owner":{"login":"RandoApp","id":7382647,"avatar_url":"https://avatars.githubusercontent.com/u/7382647?v=3","gravatar_id":"","url":"https://api.github.com/users/RandoApp","html_url":"https://github.com/RandoApp","followers_url":"https://api.github.com/users/RandoApp/followers","following_url":"https://api.github.com/users/RandoApp/following{/other_user}","gists_url":"https://api.github.com/users/RandoApp/gists{/gist_id}","starred_url":"https://api.github.com/users/RandoApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RandoApp/subscriptions","organizations_url":"https://api.github.com/users/RandoApp/orgs","repos_url":"https://api.github.com/users/RandoApp/repos","events_url":"https://api.github.com/users/RandoApp/events{/privacy}","received_events_url":"https://api.github.com/users/RandoApp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RandoApp/Rando-admin","description":"Admin console for rando server","fork":false,"url":"https://api.github.com/repos/RandoApp/Rando-admin","forks_url":"https://api.github.com/repos/RandoApp/Rando-admin/forks","keys_url":"https://api.github.com/repos/RandoApp/Rando-admin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RandoApp/Rando-admin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RandoApp/Rando-admin/teams","hooks_url":"https://api.github.com/repos/RandoApp/Rando-admin/hooks","issue_events_url":"https://api.github.com/repos/RandoApp/Rando-admin/issues/events{/number}","events_url":"https://api.github.com/repos/RandoApp/Rando-admin/events","assignees_url":"https://api.github.com/repos/RandoApp/Rando-admin/assignees{/user}","branches_url":"https://api.github.com/repos/RandoApp/Rando-admin/branches{/branch}","tags_url":"https://api.github.com/repos/RandoApp/Rando-admin/tags","blobs_url":"https://api.github.com/repos/RandoApp/Rando-admin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RandoApp/Rando-admin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RandoApp/Rando-admin/git/refs{/sha}","trees_url":"https://api.github.com/repos/RandoApp/Rando-admin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RandoApp/Rando-admin/statuses/{sha}","languages_url":"https://api.github.com/repos/RandoApp/Rando-admin/languages","stargazers_url":"https://api.github.com/repos/RandoApp/Rando-admin/stargazers","contributors_url":"https://api.github.com/repos/RandoApp/Rando-admin/contributors","subscribers_url":"https://api.github.com/repos/RandoApp/Rando-admin/subscribers","subscription_url":"https://api.github.com/repos/RandoApp/Rando-admin/subscription","commits_url":"https://api.github.com/repos/RandoApp/Rando-admin/commits{/sha}","git_commits_url":"https://api.github.com/repos/RandoApp/Rando-admin/git/commits{/sha}","comments_url":"https://api.github.com/repos/RandoApp/Rando-admin/comments{/number}","issue_comment_url":"https://api.github.com/repos/RandoApp/Rando-admin/issues/comments{/number}","contents_url":"https://api.github.com/repos/RandoApp/Rando-admin/contents/{+path}","compare_url":"https://api.github.com/repos/RandoApp/Rando-admin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RandoApp/Rando-admin/merges","archive_url":"https://api.github.com/repos/RandoApp/Rando-admin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RandoApp/Rando-admin/downloads","issues_url":"https://api.github.com/repos/RandoApp/Rando-admin/issues{/number}","pulls_url":"https://api.github.com/repos/RandoApp/Rando-admin/pulls{/number}","milestones_url":"https://api.github.com/repos/RandoApp/Rando-admin/milestones{/number}","notifications_url":"https://api.github.com/repos/RandoApp/Rando-admin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RandoApp/Rando-admin/labels{/name}","releases_url":"https://api.github.com/repos/RandoApp/Rando-admin/releases{/id}","deployments_url":"https://api.github.com/repos/RandoApp/Rando-admin/deployments","created_at":"2014-06-27T09:51:30Z","updated_at":"2016-07-06T15:07:30Z","pushed_at":"2016-11-25T14:36:59Z","git_url":"git://github.com/RandoApp/Rando-admin.git","ssh_url":"git@github.com:RandoApp/Rando-admin.git","clone_url":"https://github.com/RandoApp/Rando-admin.git","svn_url":"https://github.com/RandoApp/Rando-admin","homepage":"https://rando4.me","size":150,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RandoApp/Rando-admin/pulls/12"},"html":{"href":"https://github.com/RandoApp/Rando-admin/pull/12"},"issue":{"href":"https://api.github.com/repos/RandoApp/Rando-admin/issues/12"},"comments":{"href":"https://api.github.com/repos/RandoApp/Rando-admin/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/RandoApp/Rando-admin/pulls/12/comments"},"review_comment":{"href":"https://api.github.com/repos/RandoApp/Rando-admin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RandoApp/Rando-admin/pulls/12/commits"},"statuses":{"href":"https://api.github.com/repos/RandoApp/Rando-admin/statuses/170fe9a5acd46d922dd244b824db4084539b564d"}}}}
{"actor":{"display_login":"codacy-bot"}}