{"action":"created","comment":{"url":"https://api.github.com/repos/korunka/obed-o-bot/pulls/comments/55926846","id":55926846,"diff_hunk":"@@ -258,16 +258,20 @@ controller.hears(\n function exitHandler(options, err) {\n \n   var messages = [\n-    \"Kdo zakopnul o ten kabe... ```obed-o-bot has left the room```\"\n+    'Kdo zakopnul o ten kabe... ```obed-o-bot has left the room```'\n   ];\n   // pro všechny kanály kde jsme aktuálně přítomní\n   // bot.say(messages[0]);\n \n-  if (options.cleanup) console.log('clean');\n-  if (err) console.log(err.stack);\n+  if (options.cleanup) {\n+    //console.log('clean');\n+  }\n+  if (err) {\n+    //console.log(err.stack);\n+  }\n   // pokud ukončujeme bota pomocí Ctrl-C, oznámíme to na Slacku a odpojíme se.\n   if (options.exit) {\n-    console.log(messages[0]);\n+    console.log(messages[0]); // TODO: Nahradit console.log nějakým logovacím middlewarem.","path":"bot.js","position":30,"original_position":30,"commit_id":"5766be2779b207b51958fa70773b9f0410a3eec6","original_commit_id":"5766be2779b207b51958fa70773b9f0410a3eec6","user":{"login":"babant","id":510361,"avatar_url":"https://avatars.githubusercontent.com/u/510361?v=3","gravatar_id":"","url":"https://api.github.com/users/babant","html_url":"https://github.com/babant","followers_url":"https://api.github.com/users/babant/followers","following_url":"https://api.github.com/users/babant/following{/other_user}","gists_url":"https://api.github.com/users/babant/gists{/gist_id}","starred_url":"https://api.github.com/users/babant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babant/subscriptions","organizations_url":"https://api.github.com/users/babant/orgs","repos_url":"https://api.github.com/users/babant/repos","events_url":"https://api.github.com/users/babant/events{/privacy}","received_events_url":"https://api.github.com/users/babant/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Unexpected console statement.](https://www.codacy.com/app/ondra/obed-o-bot/file/2229908788/issues/source?bid=3165659&fileBranchId=3175493#l274)","created_at":"2016-03-12T20:05:34Z","updated_at":"2016-03-12T20:05:34Z","html_url":"https://github.com/korunka/obed-o-bot/pull/14#discussion_r55926846","pull_request_url":"https://api.github.com/repos/korunka/obed-o-bot/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/korunka/obed-o-bot/pulls/comments/55926846"},"html":{"href":"https://github.com/korunka/obed-o-bot/pull/14#discussion_r55926846"},"pull_request":{"href":"https://api.github.com/repos/korunka/obed-o-bot/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/korunka/obed-o-bot/pulls/14","id":62650523,"html_url":"https://github.com/korunka/obed-o-bot/pull/14","diff_url":"https://github.com/korunka/obed-o-bot/pull/14.diff","patch_url":"https://github.com/korunka/obed-o-bot/pull/14.patch","issue_url":"https://api.github.com/repos/korunka/obed-o-bot/issues/14","number":14,"state":"closed","locked":false,"title":"Code cleanup","user":{"login":"babant","id":510361,"avatar_url":"https://avatars.githubusercontent.com/u/510361?v=3","gravatar_id":"","url":"https://api.github.com/users/babant","html_url":"https://github.com/babant","followers_url":"https://api.github.com/users/babant/followers","following_url":"https://api.github.com/users/babant/following{/other_user}","gists_url":"https://api.github.com/users/babant/gists{/gist_id}","starred_url":"https://api.github.com/users/babant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babant/subscriptions","organizations_url":"https://api.github.com/users/babant/orgs","repos_url":"https://api.github.com/users/babant/repos","events_url":"https://api.github.com/users/babant/events{/privacy}","received_events_url":"https://api.github.com/users/babant/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-12T19:50:47Z","updated_at":"2016-03-12T20:05:34Z","closed_at":"2016-03-12T20:05:10Z","merged_at":"2016-03-12T20:05:09Z","merge_commit_sha":"af9463ec2ec41b156fb8155418876da09a4bab1b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/korunka/obed-o-bot/pulls/14/commits","review_comments_url":"https://api.github.com/repos/korunka/obed-o-bot/pulls/14/comments","review_comment_url":"https://api.github.com/repos/korunka/obed-o-bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/korunka/obed-o-bot/issues/14/comments","statuses_url":"https://api.github.com/repos/korunka/obed-o-bot/statuses/5766be2779b207b51958fa70773b9f0410a3eec6","head":{"label":"korunka:code-cleanup","ref":"code-cleanup","sha":"5766be2779b207b51958fa70773b9f0410a3eec6","user":{"login":"korunka","id":17272210,"avatar_url":"https://avatars.githubusercontent.com/u/17272210?v=3","gravatar_id":"","url":"https://api.github.com/users/korunka","html_url":"https://github.com/korunka","followers_url":"https://api.github.com/users/korunka/followers","following_url":"https://api.github.com/users/korunka/following{/other_user}","gists_url":"https://api.github.com/users/korunka/gists{/gist_id}","starred_url":"https://api.github.com/users/korunka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korunka/subscriptions","organizations_url":"https://api.github.com/users/korunka/orgs","repos_url":"https://api.github.com/users/korunka/repos","events_url":"https://api.github.com/users/korunka/events{/privacy}","received_events_url":"https://api.github.com/users/korunka/received_events","type":"Organization","site_admin":false},"repo":{"id":53120220,"name":"obed-o-bot","full_name":"korunka/obed-o-bot","owner":{"login":"korunka","id":17272210,"avatar_url":"https://avatars.githubusercontent.com/u/17272210?v=3","gravatar_id":"","url":"https://api.github.com/users/korunka","html_url":"https://github.com/korunka","followers_url":"https://api.github.com/users/korunka/followers","following_url":"https://api.github.com/users/korunka/following{/other_user}","gists_url":"https://api.github.com/users/korunka/gists{/gist_id}","starred_url":"https://api.github.com/users/korunka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korunka/subscriptions","organizations_url":"https://api.github.com/users/korunka/orgs","repos_url":"https://api.github.com/users/korunka/repos","events_url":"https://api.github.com/users/korunka/events{/privacy}","received_events_url":"https://api.github.com/users/korunka/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/korunka/obed-o-bot","description":"Slack Bot, který kontroluje obědovou nabídku v okolí Loterie Korunka a sdílí s přáteli na Slacku.","fork":false,"url":"https://api.github.com/repos/korunka/obed-o-bot","forks_url":"https://api.github.com/repos/korunka/obed-o-bot/forks","keys_url":"https://api.github.com/repos/korunka/obed-o-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/korunka/obed-o-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/korunka/obed-o-bot/teams","hooks_url":"https://api.github.com/repos/korunka/obed-o-bot/hooks","issue_events_url":"https://api.github.com/repos/korunka/obed-o-bot/issues/events{/number}","events_url":"https://api.github.com/repos/korunka/obed-o-bot/events","assignees_url":"https://api.github.com/repos/korunka/obed-o-bot/assignees{/user}","branches_url":"https://api.github.com/repos/korunka/obed-o-bot/branches{/branch}","tags_url":"https://api.github.com/repos/korunka/obed-o-bot/tags","blobs_url":"https://api.github.com/repos/korunka/obed-o-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/korunka/obed-o-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/korunka/obed-o-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/korunka/obed-o-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/korunka/obed-o-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/korunka/obed-o-bot/languages","stargazers_url":"https://api.github.com/repos/korunka/obed-o-bot/stargazers","contributors_url":"https://api.github.com/repos/korunka/obed-o-bot/contributors","subscribers_url":"https://api.github.com/repos/korunka/obed-o-bot/subscribers","subscription_url":"https://api.github.com/repos/korunka/obed-o-bot/subscription","commits_url":"https://api.github.com/repos/korunka/obed-o-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/korunka/obed-o-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/korunka/obed-o-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/korunka/obed-o-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/korunka/obed-o-bot/contents/{+path}","compare_url":"https://api.github.com/repos/korunka/obed-o-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/korunka/obed-o-bot/merges","archive_url":"https://api.github.com/repos/korunka/obed-o-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/korunka/obed-o-bot/downloads","issues_url":"https://api.github.com/repos/korunka/obed-o-bot/issues{/number}","pulls_url":"https://api.github.com/repos/korunka/obed-o-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/korunka/obed-o-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/korunka/obed-o-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/korunka/obed-o-bot/labels{/name}","releases_url":"https://api.github.com/repos/korunka/obed-o-bot/releases{/id}","deployments_url":"https://api.github.com/repos/korunka/obed-o-bot/deployments","created_at":"2016-03-04T08:32:04Z","updated_at":"2016-03-06T14:03:11Z","pushed_at":"2016-03-12T20:05:17Z","git_url":"git://github.com/korunka/obed-o-bot.git","ssh_url":"git@github.com:korunka/obed-o-bot.git","clone_url":"https://github.com/korunka/obed-o-bot.git","svn_url":"https://github.com/korunka/obed-o-bot","homepage":"","size":68,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"korunka:master","ref":"master","sha":"87a6166e26dfb8237804a9c8c3f97ff8e558f69f","user":{"login":"korunka","id":17272210,"avatar_url":"https://avatars.githubusercontent.com/u/17272210?v=3","gravatar_id":"","url":"https://api.github.com/users/korunka","html_url":"https://github.com/korunka","followers_url":"https://api.github.com/users/korunka/followers","following_url":"https://api.github.com/users/korunka/following{/other_user}","gists_url":"https://api.github.com/users/korunka/gists{/gist_id}","starred_url":"https://api.github.com/users/korunka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korunka/subscriptions","organizations_url":"https://api.github.com/users/korunka/orgs","repos_url":"https://api.github.com/users/korunka/repos","events_url":"https://api.github.com/users/korunka/events{/privacy}","received_events_url":"https://api.github.com/users/korunka/received_events","type":"Organization","site_admin":false},"repo":{"id":53120220,"name":"obed-o-bot","full_name":"korunka/obed-o-bot","owner":{"login":"korunka","id":17272210,"avatar_url":"https://avatars.githubusercontent.com/u/17272210?v=3","gravatar_id":"","url":"https://api.github.com/users/korunka","html_url":"https://github.com/korunka","followers_url":"https://api.github.com/users/korunka/followers","following_url":"https://api.github.com/users/korunka/following{/other_user}","gists_url":"https://api.github.com/users/korunka/gists{/gist_id}","starred_url":"https://api.github.com/users/korunka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/korunka/subscriptions","organizations_url":"https://api.github.com/users/korunka/orgs","repos_url":"https://api.github.com/users/korunka/repos","events_url":"https://api.github.com/users/korunka/events{/privacy}","received_events_url":"https://api.github.com/users/korunka/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/korunka/obed-o-bot","description":"Slack Bot, který kontroluje obědovou nabídku v okolí Loterie Korunka a sdílí s přáteli na Slacku.","fork":false,"url":"https://api.github.com/repos/korunka/obed-o-bot","forks_url":"https://api.github.com/repos/korunka/obed-o-bot/forks","keys_url":"https://api.github.com/repos/korunka/obed-o-bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/korunka/obed-o-bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/korunka/obed-o-bot/teams","hooks_url":"https://api.github.com/repos/korunka/obed-o-bot/hooks","issue_events_url":"https://api.github.com/repos/korunka/obed-o-bot/issues/events{/number}","events_url":"https://api.github.com/repos/korunka/obed-o-bot/events","assignees_url":"https://api.github.com/repos/korunka/obed-o-bot/assignees{/user}","branches_url":"https://api.github.com/repos/korunka/obed-o-bot/branches{/branch}","tags_url":"https://api.github.com/repos/korunka/obed-o-bot/tags","blobs_url":"https://api.github.com/repos/korunka/obed-o-bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/korunka/obed-o-bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/korunka/obed-o-bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/korunka/obed-o-bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/korunka/obed-o-bot/statuses/{sha}","languages_url":"https://api.github.com/repos/korunka/obed-o-bot/languages","stargazers_url":"https://api.github.com/repos/korunka/obed-o-bot/stargazers","contributors_url":"https://api.github.com/repos/korunka/obed-o-bot/contributors","subscribers_url":"https://api.github.com/repos/korunka/obed-o-bot/subscribers","subscription_url":"https://api.github.com/repos/korunka/obed-o-bot/subscription","commits_url":"https://api.github.com/repos/korunka/obed-o-bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/korunka/obed-o-bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/korunka/obed-o-bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/korunka/obed-o-bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/korunka/obed-o-bot/contents/{+path}","compare_url":"https://api.github.com/repos/korunka/obed-o-bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/korunka/obed-o-bot/merges","archive_url":"https://api.github.com/repos/korunka/obed-o-bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/korunka/obed-o-bot/downloads","issues_url":"https://api.github.com/repos/korunka/obed-o-bot/issues{/number}","pulls_url":"https://api.github.com/repos/korunka/obed-o-bot/pulls{/number}","milestones_url":"https://api.github.com/repos/korunka/obed-o-bot/milestones{/number}","notifications_url":"https://api.github.com/repos/korunka/obed-o-bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/korunka/obed-o-bot/labels{/name}","releases_url":"https://api.github.com/repos/korunka/obed-o-bot/releases{/id}","deployments_url":"https://api.github.com/repos/korunka/obed-o-bot/deployments","created_at":"2016-03-04T08:32:04Z","updated_at":"2016-03-06T14:03:11Z","pushed_at":"2016-03-12T20:05:17Z","git_url":"git://github.com/korunka/obed-o-bot.git","ssh_url":"git@github.com:korunka/obed-o-bot.git","clone_url":"https://github.com/korunka/obed-o-bot.git","svn_url":"https://github.com/korunka/obed-o-bot","homepage":"","size":68,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/korunka/obed-o-bot/pulls/14"},"html":{"href":"https://github.com/korunka/obed-o-bot/pull/14"},"issue":{"href":"https://api.github.com/repos/korunka/obed-o-bot/issues/14"},"comments":{"href":"https://api.github.com/repos/korunka/obed-o-bot/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/korunka/obed-o-bot/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/korunka/obed-o-bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/korunka/obed-o-bot/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/korunka/obed-o-bot/statuses/5766be2779b207b51958fa70773b9f0410a3eec6"}}}}