{"action":"created","comment":{"url":"https://api.github.com/repos/RandoApp/Rando-admin/pulls/comments/202304351","pull_request_review_id":136978348,"id":202304351,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjMwNDM1MQ==","diff_hunk":"@@ -276,6 +273,79 @@ app.post('/scripts/:script', access.forAdmin, function (req, res) {\n   });\n });\n \n+app.get('/labels', access.forAdmin, (req, res) => {\n+  console.info(\"GET /labels\" + req.query);\n+  if (req.query.supported) {\n+    res.send(config.admin.labels);\n+  } else {\n+    var offset = req.query.offset;\n+    var limit = req.query.limit;\n+    db.label.getAllLight(offset, limit, (err, labels) => {\n+      if (err) {\n+        console.log(\"ERR: \" + err);\n+        res.status(500);\n+        return res.send(err);\n+      } else {\n+        res.send(labels);\n+      }\n+    });\n+  }\n+});\n+\n+app.get('/label/:randoId', access.forAdmin, (req, res) => {","path":"admin.js","position":59,"original_position":59,"commit_id":"63ae7a4c1607307b0fac35ef102ce66a8a011c67","original_commit_id":"63ae7a4c1607307b0fac35ef102ce66a8a011c67","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","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://app.codacy.com/assets/images/favicon.png) Issue found: [Strings must use doublequote. (quotes)](https://app.codacy.com/app/RandoApp/Rando-admin/pullRequest?prid=1893773)","created_at":"2018-07-13T10:03:53Z","updated_at":"2018-07-13T10:03:53Z","html_url":"https://github.com/RandoApp/Rando-admin/pull/20#discussion_r202304351","pull_request_url":"https://api.github.com/repos/RandoApp/Rando-admin/pulls/20","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/RandoApp/Rando-admin/pulls/comments/202304351"},"html":{"href":"https://github.com/RandoApp/Rando-admin/pull/20#discussion_r202304351"},"pull_request":{"href":"https://api.github.com/repos/RandoApp/Rando-admin/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/RandoApp/Rando-admin/pulls/20","id":200940287,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwOTQwMjg3","html_url":"https://github.com/RandoApp/Rando-admin/pull/20","diff_url":"https://github.com/RandoApp/Rando-admin/pull/20.diff","patch_url":"https://github.com/RandoApp/Rando-admin/pull/20.patch","issue_url":"https://api.github.com/repos/RandoApp/Rando-admin/issues/20","number":20,"state":"open","locked":false,"title":"Implement labeling","user":{"login":"dimhold","id":977022,"node_id":"MDQ6VXNlcjk3NzAyMg==","avatar_url":"https://avatars2.githubusercontent.com/u/977022?v=4","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":"2018-07-12T09:29:20Z","updated_at":"2018-07-13T10:03:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"be59625904661db7b0758593bf325972c3032161","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/RandoApp/Rando-admin/pulls/20/commits","review_comments_url":"https://api.github.com/repos/RandoApp/Rando-admin/pulls/20/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/20/comments","statuses_url":"https://api.github.com/repos/RandoApp/Rando-admin/statuses/63ae7a4c1607307b0fac35ef102ce66a8a011c67","head":{"label":"RandoApp:implement-labeling","ref":"implement-labeling","sha":"63ae7a4c1607307b0fac35ef102ce66a8a011c67","user":{"login":"RandoApp","id":7382647,"node_id":"MDEyOk9yZ2FuaXphdGlvbjczODI2NDc=","avatar_url":"https://avatars2.githubusercontent.com/u/7382647?v=4","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,"node_id":"MDEwOlJlcG9zaXRvcnkyMTI3MTMwMw==","name":"Rando-admin","full_name":"RandoApp/Rando-admin","owner":{"login":"RandoApp","id":7382647,"node_id":"MDEyOk9yZ2FuaXphdGlvbjczODI2NDc=","avatar_url":"https://avatars2.githubusercontent.com/u/7382647?v=4","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":"2018-07-13T10:02:28Z","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_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"RandoApp:master","ref":"master","sha":"ee56d04858fce6fd9f821d4adb5449ff48e87c78","user":{"login":"RandoApp","id":7382647,"node_id":"MDEyOk9yZ2FuaXphdGlvbjczODI2NDc=","avatar_url":"https://avatars2.githubusercontent.com/u/7382647?v=4","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,"node_id":"MDEwOlJlcG9zaXRvcnkyMTI3MTMwMw==","name":"Rando-admin","full_name":"RandoApp/Rando-admin","owner":{"login":"RandoApp","id":7382647,"node_id":"MDEyOk9yZ2FuaXphdGlvbjczODI2NDc=","avatar_url":"https://avatars2.githubusercontent.com/u/7382647?v=4","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":"2018-07-13T10:02:28Z","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_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0","node_id":"MDc6TGljZW5zZTg="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RandoApp/Rando-admin/pulls/20"},"html":{"href":"https://github.com/RandoApp/Rando-admin/pull/20"},"issue":{"href":"https://api.github.com/repos/RandoApp/Rando-admin/issues/20"},"comments":{"href":"https://api.github.com/repos/RandoApp/Rando-admin/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/RandoApp/Rando-admin/pulls/20/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/20/commits"},"statuses":{"href":"https://api.github.com/repos/RandoApp/Rando-admin/statuses/63ae7a4c1607307b0fac35ef102ce66a8a011c67"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"codacy-bot"}}