{"action":"created","comment":{"url":"https://api.github.com/repos/affshate/bot/pulls/comments/83159918","pull_request_review_id":4018035,"id":83159918,"diff_hunk":"@@ -50,10 +52,15 @@ levelup('./mydb', (err, db) => {\n         .on('end', function () {\n \n           const each = badUsers\n-            .map(o => `${ o.name }: ${ o.value }`)\n+            .map(o => {\n+              const formatSpace = Array(Math.max(preferredStringLength - o.name.length - 1, 0)).join('.');\n+              return `${ o.name }:${ formatSpace }.${ o.value }`;\n+            })","path":"index.js","position":17,"original_position":17,"commit_id":"543b282d17dc11a66baa85500400fd52e2fcd533","original_commit_id":"543b282d17dc11a66baa85500400fd52e2fcd533","user":{"login":"iamolegga","id":5501657,"avatar_url":"https://avatars.githubusercontent.com/u/5501657?v=3","gravatar_id":"","url":"https://api.github.com/users/iamolegga","html_url":"https://github.com/iamolegga","followers_url":"https://api.github.com/users/iamolegga/followers","following_url":"https://api.github.com/users/iamolegga/following{/other_user}","gists_url":"https://api.github.com/users/iamolegga/gists{/gist_id}","starred_url":"https://api.github.com/users/iamolegga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamolegga/subscriptions","organizations_url":"https://api.github.com/users/iamolegga/orgs","repos_url":"https://api.github.com/users/iamolegga/repos","events_url":"https://api.github.com/users/iamolegga/events{/privacy}","received_events_url":"https://api.github.com/users/iamolegga/received_events","type":"User","site_admin":false},"body":"если ты пытаешься выровнять текст пробелами, то тщетно, так как шрифт в слаке не моноширинный","created_at":"2016-10-13T07:50:13Z","updated_at":"2016-10-13T07:59:46Z","html_url":"https://github.com/affshate/bot/pull/1#discussion_r83159918","pull_request_url":"https://api.github.com/repos/affshate/bot/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/affshate/bot/pulls/comments/83159918"},"html":{"href":"https://github.com/affshate/bot/pull/1#discussion_r83159918"},"pull_request":{"href":"https://api.github.com/repos/affshate/bot/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/affshate/bot/pulls/1","id":89114269,"html_url":"https://github.com/affshate/bot/pull/1","diff_url":"https://github.com/affshate/bot/pull/1.diff","patch_url":"https://github.com/affshate/bot/pull/1.patch","issue_url":"https://api.github.com/repos/affshate/bot/issues/1","number":1,"state":"open","locked":false,"title":"format output and accept sum parameter","user":{"login":"funthing","id":2513899,"avatar_url":"https://avatars.githubusercontent.com/u/2513899?v=3","gravatar_id":"","url":"https://api.github.com/users/funthing","html_url":"https://github.com/funthing","followers_url":"https://api.github.com/users/funthing/followers","following_url":"https://api.github.com/users/funthing/following{/other_user}","gists_url":"https://api.github.com/users/funthing/gists{/gist_id}","starred_url":"https://api.github.com/users/funthing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/funthing/subscriptions","organizations_url":"https://api.github.com/users/funthing/orgs","repos_url":"https://api.github.com/users/funthing/repos","events_url":"https://api.github.com/users/funthing/events{/privacy}","received_events_url":"https://api.github.com/users/funthing/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-12T23:43:59Z","updated_at":"2016-10-13T07:59:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d616ddc24adcd004ff9ac8988fe4df5a19458a1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/affshate/bot/pulls/1/commits","review_comments_url":"https://api.github.com/repos/affshate/bot/pulls/1/comments","review_comment_url":"https://api.github.com/repos/affshate/bot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/affshate/bot/issues/1/comments","statuses_url":"https://api.github.com/repos/affshate/bot/statuses/543b282d17dc11a66baa85500400fd52e2fcd533","head":{"label":"affshate:some-improvements","ref":"some-improvements","sha":"543b282d17dc11a66baa85500400fd52e2fcd533","user":{"login":"affshate","id":20647754,"avatar_url":"https://avatars.githubusercontent.com/u/20647754?v=3","gravatar_id":"","url":"https://api.github.com/users/affshate","html_url":"https://github.com/affshate","followers_url":"https://api.github.com/users/affshate/followers","following_url":"https://api.github.com/users/affshate/following{/other_user}","gists_url":"https://api.github.com/users/affshate/gists{/gist_id}","starred_url":"https://api.github.com/users/affshate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/affshate/subscriptions","organizations_url":"https://api.github.com/users/affshate/orgs","repos_url":"https://api.github.com/users/affshate/repos","events_url":"https://api.github.com/users/affshate/events{/privacy}","received_events_url":"https://api.github.com/users/affshate/received_events","type":"Organization","site_admin":false},"repo":{"id":70435972,"name":"bot","full_name":"affshate/bot","owner":{"login":"affshate","id":20647754,"avatar_url":"https://avatars.githubusercontent.com/u/20647754?v=3","gravatar_id":"","url":"https://api.github.com/users/affshate","html_url":"https://github.com/affshate","followers_url":"https://api.github.com/users/affshate/followers","following_url":"https://api.github.com/users/affshate/following{/other_user}","gists_url":"https://api.github.com/users/affshate/gists{/gist_id}","starred_url":"https://api.github.com/users/affshate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/affshate/subscriptions","organizations_url":"https://api.github.com/users/affshate/orgs","repos_url":"https://api.github.com/users/affshate/repos","events_url":"https://api.github.com/users/affshate/events{/privacy}","received_events_url":"https://api.github.com/users/affshate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/affshate/bot","description":"slack blacks bot","fork":false,"url":"https://api.github.com/repos/affshate/bot","forks_url":"https://api.github.com/repos/affshate/bot/forks","keys_url":"https://api.github.com/repos/affshate/bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/affshate/bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/affshate/bot/teams","hooks_url":"https://api.github.com/repos/affshate/bot/hooks","issue_events_url":"https://api.github.com/repos/affshate/bot/issues/events{/number}","events_url":"https://api.github.com/repos/affshate/bot/events","assignees_url":"https://api.github.com/repos/affshate/bot/assignees{/user}","branches_url":"https://api.github.com/repos/affshate/bot/branches{/branch}","tags_url":"https://api.github.com/repos/affshate/bot/tags","blobs_url":"https://api.github.com/repos/affshate/bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/affshate/bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/affshate/bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/affshate/bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/affshate/bot/statuses/{sha}","languages_url":"https://api.github.com/repos/affshate/bot/languages","stargazers_url":"https://api.github.com/repos/affshate/bot/stargazers","contributors_url":"https://api.github.com/repos/affshate/bot/contributors","subscribers_url":"https://api.github.com/repos/affshate/bot/subscribers","subscription_url":"https://api.github.com/repos/affshate/bot/subscription","commits_url":"https://api.github.com/repos/affshate/bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/affshate/bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/affshate/bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/affshate/bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/affshate/bot/contents/{+path}","compare_url":"https://api.github.com/repos/affshate/bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/affshate/bot/merges","archive_url":"https://api.github.com/repos/affshate/bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/affshate/bot/downloads","issues_url":"https://api.github.com/repos/affshate/bot/issues{/number}","pulls_url":"https://api.github.com/repos/affshate/bot/pulls{/number}","milestones_url":"https://api.github.com/repos/affshate/bot/milestones{/number}","notifications_url":"https://api.github.com/repos/affshate/bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/affshate/bot/labels{/name}","releases_url":"https://api.github.com/repos/affshate/bot/releases{/id}","deployments_url":"https://api.github.com/repos/affshate/bot/deployments","created_at":"2016-10-09T23:15:30Z","updated_at":"2016-10-09T23:19:39Z","pushed_at":"2016-10-12T23:58:33Z","git_url":"git://github.com/affshate/bot.git","ssh_url":"git@github.com:affshate/bot.git","clone_url":"https://github.com/affshate/bot.git","svn_url":"https://github.com/affshate/bot","homepage":null,"size":7,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"affshate:master","ref":"master","sha":"c6551d0b4cf2eb0205236347856777b6f05510dc","user":{"login":"affshate","id":20647754,"avatar_url":"https://avatars.githubusercontent.com/u/20647754?v=3","gravatar_id":"","url":"https://api.github.com/users/affshate","html_url":"https://github.com/affshate","followers_url":"https://api.github.com/users/affshate/followers","following_url":"https://api.github.com/users/affshate/following{/other_user}","gists_url":"https://api.github.com/users/affshate/gists{/gist_id}","starred_url":"https://api.github.com/users/affshate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/affshate/subscriptions","organizations_url":"https://api.github.com/users/affshate/orgs","repos_url":"https://api.github.com/users/affshate/repos","events_url":"https://api.github.com/users/affshate/events{/privacy}","received_events_url":"https://api.github.com/users/affshate/received_events","type":"Organization","site_admin":false},"repo":{"id":70435972,"name":"bot","full_name":"affshate/bot","owner":{"login":"affshate","id":20647754,"avatar_url":"https://avatars.githubusercontent.com/u/20647754?v=3","gravatar_id":"","url":"https://api.github.com/users/affshate","html_url":"https://github.com/affshate","followers_url":"https://api.github.com/users/affshate/followers","following_url":"https://api.github.com/users/affshate/following{/other_user}","gists_url":"https://api.github.com/users/affshate/gists{/gist_id}","starred_url":"https://api.github.com/users/affshate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/affshate/subscriptions","organizations_url":"https://api.github.com/users/affshate/orgs","repos_url":"https://api.github.com/users/affshate/repos","events_url":"https://api.github.com/users/affshate/events{/privacy}","received_events_url":"https://api.github.com/users/affshate/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/affshate/bot","description":"slack blacks bot","fork":false,"url":"https://api.github.com/repos/affshate/bot","forks_url":"https://api.github.com/repos/affshate/bot/forks","keys_url":"https://api.github.com/repos/affshate/bot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/affshate/bot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/affshate/bot/teams","hooks_url":"https://api.github.com/repos/affshate/bot/hooks","issue_events_url":"https://api.github.com/repos/affshate/bot/issues/events{/number}","events_url":"https://api.github.com/repos/affshate/bot/events","assignees_url":"https://api.github.com/repos/affshate/bot/assignees{/user}","branches_url":"https://api.github.com/repos/affshate/bot/branches{/branch}","tags_url":"https://api.github.com/repos/affshate/bot/tags","blobs_url":"https://api.github.com/repos/affshate/bot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/affshate/bot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/affshate/bot/git/refs{/sha}","trees_url":"https://api.github.com/repos/affshate/bot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/affshate/bot/statuses/{sha}","languages_url":"https://api.github.com/repos/affshate/bot/languages","stargazers_url":"https://api.github.com/repos/affshate/bot/stargazers","contributors_url":"https://api.github.com/repos/affshate/bot/contributors","subscribers_url":"https://api.github.com/repos/affshate/bot/subscribers","subscription_url":"https://api.github.com/repos/affshate/bot/subscription","commits_url":"https://api.github.com/repos/affshate/bot/commits{/sha}","git_commits_url":"https://api.github.com/repos/affshate/bot/git/commits{/sha}","comments_url":"https://api.github.com/repos/affshate/bot/comments{/number}","issue_comment_url":"https://api.github.com/repos/affshate/bot/issues/comments{/number}","contents_url":"https://api.github.com/repos/affshate/bot/contents/{+path}","compare_url":"https://api.github.com/repos/affshate/bot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/affshate/bot/merges","archive_url":"https://api.github.com/repos/affshate/bot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/affshate/bot/downloads","issues_url":"https://api.github.com/repos/affshate/bot/issues{/number}","pulls_url":"https://api.github.com/repos/affshate/bot/pulls{/number}","milestones_url":"https://api.github.com/repos/affshate/bot/milestones{/number}","notifications_url":"https://api.github.com/repos/affshate/bot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/affshate/bot/labels{/name}","releases_url":"https://api.github.com/repos/affshate/bot/releases{/id}","deployments_url":"https://api.github.com/repos/affshate/bot/deployments","created_at":"2016-10-09T23:15:30Z","updated_at":"2016-10-09T23:19:39Z","pushed_at":"2016-10-12T23:58:33Z","git_url":"git://github.com/affshate/bot.git","ssh_url":"git@github.com:affshate/bot.git","clone_url":"https://github.com/affshate/bot.git","svn_url":"https://github.com/affshate/bot","homepage":null,"size":7,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/affshate/bot/pulls/1"},"html":{"href":"https://github.com/affshate/bot/pull/1"},"issue":{"href":"https://api.github.com/repos/affshate/bot/issues/1"},"comments":{"href":"https://api.github.com/repos/affshate/bot/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/affshate/bot/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/affshate/bot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/affshate/bot/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/affshate/bot/statuses/543b282d17dc11a66baa85500400fd52e2fcd533"}}}}
{"actor":{"display_login":"iamolegga"}}